ZF-9294: Zend_Session_SaveHandler_DbTable does not honor AUTO_QUOTE_IDENTIFIERS

Issue Type: Bug Created: 2010-02-28T15:18:29.000+0000 Last Updated: 2010-12-17T16:57:50.000+0000 Status: Resolved Fix version(s): - 1.11.2 (30/Dec/10)

Reporter: Tim Dettrick (tjdett) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Session

Related issues: Attachments: - Zend_Session_SaveHandler_DbTable.patch


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.


Posted by Tim Dettrick (tjdett) on 2010-02-28T15:20:27.000+0000

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

Posted by Ramon Henrique Ornelas (ramon) on 2010-12-17T16:57:49.000+0000

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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.