[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 Tue Mar 31 15:40:15 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.