[DBAL-61] Incompatible transactions in OCI8 driver with other drivers (pdo_oci, pdo_mysql, pdo_pgsql) Created: 09/Nov/10 Updated: 11/Nov/10 Resolved: 11/Nov/10
|Reporter:||Miloslav "adrive" Kmet||Assignee:||Benjamin Eberlei|
PHP Version 5.3.3-1ubuntu9, OCI8 1.4.1, Oracle 10.2.0.4.0
When I try to insert some data, it is not saved into database.
When I invoke the previous code on any other DBAL driver, like pdo_oci, pdo_mysql, pdo_pgsql, the row is inserted.
That's because Oracle is transactional, and everything need to be commited. This behavior prevent's me (and I think in a feature not only me), to use 3rd party code (bundles, models, plugins...) in my applications running oracle. This behavior prevents developers to write portable code with DBAL. The solution is to make OCI8Driver commit everything after invoking oci_execute(), the same way how Doctrine_Adapter_Oracle works in Doctrine1. (https://github.com/doctrine/doctrine1/blob/master/lib/Doctrine/Adapter/Oracle.php)
|Comment by Benjamin Eberlei [ 09/Nov/10 ]|
Scheduled for RC1, thanks for the patch - I will apply asap.
|Comment by Benjamin Eberlei [ 11/Nov/10 ]|