Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-856

[GH-561] Fix FOR UPDATE SQL on SQL Anywhere

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of deeky666:

      Url: https://github.com/doctrine/dbal/pull/561

      Message:

      It looks like there was a misunderstanding on SQL Anywhere with the `FOR UPDATE` SQL as this is actually a statement used in prepared statements and does not work the ANSI way in ORM. So I removed it in favour of the table lock hint implementation which works out quite well and makes the `getForUpdateSQL()` rather useless anyways. SQL Server does it like this, too btw and both dialects are pretty similar because SQL Anywhere once drived from it.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-561] was closed:
        https://github.com/doctrine/dbal/pull/561

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-561] was closed: https://github.com/doctrine/dbal/pull/561
        Show
        Marco Pivetta added a comment - Merged: https://github.com/doctrine/dbal/commit/6a120fb9ed08c5939f3f224ac4e7a269bf5d0ea3

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: