[DBAL-231] Doctrine\DBAL\SQLParserUtils::getPlaceholderPositions() - regex Created: 05/Mar/12 Updated: 19/Jan/13 Resolved: 14/Mar/12 |
|
| Status: | Resolved |
| Project: | Doctrine DBAL |
| Component/s: | None |
| Affects Version/s: | 2.2 |
| Fix Version/s: | 2.3.3 |
| Security Level: | All |
| Type: | Bug | Priority: | Major |
| Reporter: | Ivo Mandalski | Assignee: | Benjamin Eberlei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Fedora-16, Zend Serve CE, PHP 5.3.5 |
||
| Description |
|
Running the following SQL (note the named parameter ":account_id"): ends up in a thrown exception. $qb = $this->_em->getConnection()->createQueryBuilder(); $stmt = $qb->execute(); =================== Suggested Fix: Regex on line 64 in preg_match becomes '#([:a-zA-Z0-9_] {1})#' =================== |
| Comments |
| Comment by Benjamin Eberlei [ 14/Mar/12 ] |
|
Fixed |
| Comment by Benjamin Eberlei [ 14/Mar/12 ] |
|
Merged in 2.1.x and 2.2 branches. |
| Comment by Andrew Vit [ 24/Mar/12 ] |
|
I already fixed this in my reworking of the SqlParserUtils last month. See pull request and confirm that this issue was fixed there, together with other parsing problems: |
| Comment by Benjamin Eberlei [ 19/Jan/13 ] |
|
Fixed in 2.3.3 |