mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2914: [GH-910] [DDC-2310] Fix SQL generation on table lock hint capable platforms #3630
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 13, 2014).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of deeky666:
Url: https://github.com/doctrine/doctrine2/pull/910
Message:
SQL Server and SQL Anywhere use table lock hints for locking. ORM generates wrong SQL when used in conjunction with joins, in a table inheritance scenario or in a subquery. It places the table lock hints after the
JOINclauses, which is wrong. The table lock hints have to be placed after each table alias in theFROMclause._Example (current)_
_Example (expected)_
The testsuites fail big time at the moment because of that and I suppose ORM is more or less unusable at the moment for those platforms without this patch.
I needed to adjust a lot of tests which compared compiled DQL, to make use of the platforms specific lock hint clauses.
Also I did not add new tests because there are already so many tests, where this fails without this patch that this is not necessary IMO.
@doctrinebot commented on GitHub (Jan 13, 2014):
@doctrinebot commented on GitHub (Jan 31, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-910] was closed:
https://github.com/doctrine/doctrine2/pull/910
@doctrinebot commented on GitHub (Aug 18, 2014):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Nov 11, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-925] was assigned:
https://github.com/doctrine/doctrine2/pull/925
@doctrinebot commented on GitHub (Nov 11, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-925] was closed:
https://github.com/doctrine/doctrine2/pull/925