Zend Framework

Zend_Session_SaveHandler_DbTable does not honor AUTO_QUOTE_IDENTIFIERS

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor 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.

Activity

Hide
Tim Dettrick added a comment -

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

Show
Tim Dettrick added a comment - Patch changes $this->getAdapter()>quoteIdentifier($primary) to $this>getAdapter()->quoteIdentifier($primary,true), which results in the AUTO_QUOTE_IDENTIFIERS being honored.
Hide
Ramon Henrique Ornelas added a comment -

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

Show
Ramon Henrique Ornelas added a comment - Fixed r23542 in trunk merged to release branch 1.11 r23543 - thanks.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: