Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-750

[GH-483] Fix parsing SQL Server bracket delimiters in SQL statements

    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/483

      Message:

      Currently `SQLParserUtils` does not take SQL Server's bracket identifier delimiters into account when parsing parameter placeholders. Colons and question marks should not be considered as parameter placeholder in explicitly quoted identifiers (as is the case already for single quoted, double quoted and backtick quoted identifiers).

      *Example*
      ```sql
      SELECT [column?], [ns::column], [column], foo, ? FROM bar
      ```
      The `SQLParserUtil` should detect exactly one placeholder here.

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: