Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.11.2
-
Component/s: Zend_Session
-
Labels:None
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.
Patch changes $this->getAdapter()
>quoteIdentifier($primary) to $this>getAdapter()->quoteIdentifier($primary,true), which results in the AUTO_QUOTE_IDENTIFIERS being honored.>quoteIdentifier($primary) to $this>getAdapter()->quoteIdentifier($primary,true), which results in the AUTO_QUOTE_IDENTIFIERS being honored.