Git Product home page Git Product logo

Comments (3)

elliotchance avatar elliotchance commented on June 25, 2024 1

That being said, I think the error message should be clearer with a suggestion so it's not so bizarre:

syntax error: near "NAME" (using key word as identifier?)

from vsql.

elliotchance avatar elliotchance commented on June 25, 2024

The SQL standard defines:

<key word> ::=
    <reserved word>
  | <non-reserved word>

NAME falls in the list of non-reserved words. As far as I can tell, the standard doesn't have a rule saying an <identifier> cannot be a <non-reserved word> but this will cause problems with the parser if NAME needs to be a keyword in the future. So as a precautionary measure I register all key words in the parser as off limits.

I realize it's kind of annoying for many common words, but it seems like the safer option to just disallow them all now. You can use "name".

from vsql.

elliotchance avatar elliotchance commented on June 25, 2024

@BEN00262 Turns out you can use non reserved words as identifiers: https://github.com/elliotchance/vsql/releases/tag/v0.24.1

from vsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.