ZF-3546: Zend_Db_Adapter_Pdo_Oci lastInsertId


Oracle DB doesn't support auto increment, so the lastInsertId doesn't work.

I suggest this change, because Zend_Db_Table also uses lastInsertId() and when it throws an exception, that Oracle doesn't support it, it breaks an application.

It is already written in the comment to this method: {quote}Oracle does not support IDENTITY columns, so if the sequence is not specified, this method returns null.{quote}

Index: I:/xampp/php/PEAR/Zend15/library/Zend/Db/Adapter/Pdo/Oci.php
--- I:/xampp/php/PEAR/Zend15/library/Zend/Db/Adapter/Pdo/Oci.php    (revision 9855)
+++ I:/xampp/php/PEAR/Zend15/library/Zend/Db/Adapter/Pdo/Oci.php    (working copy)
@@ -292,7 +292,7 @@
             $sequenceName .= $this->foldCase('_seq');
             return $this->lastSequenceId($sequenceName);
-        return $this->_connection->lastInsertId($tableName);
+        return;


it also affects 1.6.0RC1

It also affects 1.6.0RC2

It also affects 1.6.0RC3

It also affects 1.6.0.

It also affects 1.6.1.

Fixed in SVN11942

Changing issues in preparation for the 1.7.0 release.