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

        Doctrine Bot created issue -
        Marco Pivetta made changes -
        Field Original Value New Value
        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-2662 - 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.
        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.
        Hide
        Marco Pivetta added a comment -

        Duplicate of DDC-2622

        Show
        Marco Pivetta added a comment - Duplicate of DDC-2622
        Marco Pivetta made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Marco Pivetta [ ocramius ]
        Resolution Duplicate [ 3 ]
        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
        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

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-607, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: