[DDC-1693] SqlWalker doesn't handle LockMode correctly Created: 11/Mar/12  Updated: 11/Mar/12  Resolved: 11/Mar/12

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: None
Affects Version/s: 2.2-BETA1, 2.2-BETA2, 2.2.0-RC1, 2.2, 2.2.1, Git Master
Fix Version/s: 2.2.2
Security Level: All

Type: Bug Priority: Major
Reporter: Billy Bednar Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None


Both issues are in SqlWalker::walkSelectStatement().
First is a typo on line 443 in master where LockMode::PESSIMISTIC_OPTIMISTIC is used instead of LockMode::OPTIMISTIC. This results in a fatal undefined class constant error.
Additionally, LockMode::NONE is not handled and results in an exception. An empty case will solve that issue.

Comment by Benjamin Eberlei [ 11/Mar/12 ]

Fixed, merged back into 2.2 branch.

Generated at Wed Dec 02 00:29:11 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.