Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-607

[GH-371] DDC-2662 - SQLServer expects the `OVER` clause to only include columns from the `FROM` clause

    Details

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

      Description

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

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

      Message:

      DDC-2622 - SQLServer expects the `OVER` clause to only include columns from the `FROM` clause

      As of http://technet.microsoft.com/en-us/library/ms189461.aspx :

      `order_by_expression:

      > Specifies a column or expression on which to sort. order_by_expression can only refer to columns made available by the FROM clause. An integer cannot be specified to represent a column name or alias.

      That basically means that table aliases used to fetch the selected columns should NOT be included in the `OVER` clause.

        Activity

        Hide
        Doctrine Bot added a comment -

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

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-789] was closed: https://github.com/doctrine/doctrine2/pull/789
        Hide
        Doctrine Bot added a comment -

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

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

        Duplicate of DDC-2622

        Show
        Marco Pivetta added a comment - Duplicate of DDC-2622

          People

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

            Dates

            • Created:
              Updated:
              Resolved: