ZF-9294: Zend_Session_SaveHandler_DbTable does not honor AUTO_QUOTE_IDENTIFIERS

Description

Zend_Session_SaveHandler_DbTable does not update properly on adapters with AUTO_QUOTE_IDENTIFIERS set to false. (This behavior was observed with an Oracle database.)

The root cause is that PRIMARY_TYPE_WHERECLAUSE quotes the identifier itself without regard to AUTO_QUOTE_IDENTIFIERS. The attached patch fixes this issue.

Comments

Patch changes $this->getAdapter()->quoteIdentifier($primary) to $this->getAdapter()->quoteIdentifier($primary,true), which results in the AUTO_QUOTE_IDENTIFIERS being honored.

Fixed r23542 in trunk merged to release branch 1.11 r23543 - thanks.