Zend Framework

Zend_Db_Select SQL: FOR UPDATE

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.1.3, 0.1.4, 0.1.5
  • Fix Version/s: 1.5.0
  • Component/s: Zend_Db_Select
  • Labels:
    None
  • Fix Version Priority:
    Nice to Have

Description

When Zend_Db_Select::toString() is called the FOR UPDATE syntax should be processed by the Zend_Db_Adapter* that it belongs to. The current method generates a syntax that is incompatible with MySQL. Allowing the Zend_Db_Adapter_*::limit() method to process a $forUpdate flag would solve the problem.

Activity

Hide
Gavin added a comment -

There should also be support for SELECT ... LOCK IN SHARE, and the corresponding locking modes in SQLite ( http://www.sqlite.org/lockingv3.html ), and similar for the other adapters. This issue overlaps with ZF-39.

Show
Gavin added a comment - There should also be support for SELECT ... LOCK IN SHARE, and the corresponding locking modes in SQLite ( http://www.sqlite.org/lockingv3.html ), and similar for the other adapters. This issue overlaps with ZF-39.
Hide
Bill Karwin added a comment -

Changing fix version to 0.8.0.

Show
Bill Karwin added a comment - Changing fix version to 0.8.0.
Hide
Bill Karwin added a comment -

Recategorize as Zend_Db_Table component.

Show
Bill Karwin added a comment - Recategorize as Zend_Db_Table component.
Hide
Bill Karwin added a comment -

Marking this issue Postponed, to be revisited in a later release of Zend_Db.

Show
Bill Karwin added a comment - Marking this issue Postponed, to be revisited in a later release of Zend_Db.
Hide
Simon Mundy added a comment -

The SQL-only version of this has been resolved in r7508 in trunk.

Show
Simon Mundy added a comment - The SQL-only version of this has been resolved in r7508 in trunk.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1w
Original Estimate - 1 week
Remaining:
1w
Remaining Estimate - 1 week
Logged:
Not Specified
Time Spent - Not Specified