Comments (3)
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.
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.
@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)
- Readme points to the wrong place for install instructions HOT 2
- -9223372036854775808 overflows
- `FLOAT(n)` does not have any affect
- CAST(REAL AS BIGINT) boundary checking
- make bin/vsql fails due to distinction between result and option HOT 4
- examples not work with latest v version
- Improve parser errors
- Support for SEQUENCES
- PG server! HOT 5
- Provide docker image
- vsql should support transparent data encryption (TDE)
- V panic HOT 2
- make fails HOT 9
- Durability (& reliability) versus performance HOT 2
- Transaction questions HOT 2
- Support for builtin orm HOT 5
- Failure to create lock file HOT 3
- Cannot compile with `-prod`
- Fix linux build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vsql.