Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Trailing spaces in table or column names deleted #39

Open
kibtidec opened this issue Nov 13, 2016 · 0 comments
Open

Trailing spaces in table or column names deleted #39

kibtidec opened this issue Nov 13, 2016 · 0 comments
Labels

Comments

@kibtidec
Copy link

It's probably more an academic problem than a real life issue ... trailing spaces from table or column names do not make it into the AST, e.g.

select "a " from "b "

leads to

{
  "type": "statement",
  "variant": "list",
  "statement": [
    {
      "type": "statement",
      "variant": "select",
      "result": [
        {
          "type": "identifier",
          "variant": "column",
          "name": "a"
        }
      ],
      "from": {
        "type": "identifier",
        "variant": "table",
        "name": "b"
      }
    }
  ]
}

Although it doesn't make too much sense to define identifiers with trailing spaces it works in sqlite, therefore the created AST should reflect this.

@nwronski nwronski added the bug label Jan 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants