Zend Framework

Database row does not update, Oracle, save

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Won't Fix
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Component/s: Zend_Db
  • Labels:
    None

Description

When Zend_Db_Row::save() is called using Zend_Db_Adapter_Oracle, the row in database does not update. This works fine in 1.9.3PL1.

The row does not get updated even though the Zend_Db_Adapter_Abstract::update() statement returns a positive number of affected rows.

Issue Links

Activity

Hide
Helgi Hrafn Halldórsson added a comment -

I found out that my extended framework overwrites the _connect method to execute ALTER SESSSION queries. The _connect function in 1.9.4 calls _setExecuteMode(OCI_COMMIT_ON_SUCCESS) while in 1.9.3PL1 the $_execute_mode parameter is set to OCI_COMMIT_ON_SUCCESS by default.

Show
Helgi Hrafn Halldórsson added a comment - I found out that my extended framework overwrites the _connect method to execute ALTER SESSSION queries. The _connect function in 1.9.4 calls _setExecuteMode(OCI_COMMIT_ON_SUCCESS) while in 1.9.3PL1 the $_execute_mode parameter is set to OCI_COMMIT_ON_SUCCESS by default.
Hide
Mickael Perraud added a comment -

See ZF-7946 for associated issue that explain the new behaviour

Show
Mickael Perraud added a comment - See ZF-7946 for associated issue that explain the new behaviour

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: