Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to run a basic query and its not working #15

Open
mattaltepeter opened this issue Feb 1, 2017 · 1 comment
Open

Trying to run a basic query and its not working #15

mattaltepeter opened this issue Feb 1, 2017 · 1 comment

Comments

@mattaltepeter
Copy link

mattaltepeter commented Feb 1, 2017

SELECT MONTH(endTime) FROM table

results in:

/Users/maltepeter/Documents/repos/node-query-api/node_modules/node-sql-parser/pegjs-parser.js:9800
      throw peg$buildException(
      ^
SyntaxError: Expected [A-Za-z0-9_] but end of input found.

Is there a way to get it to support this functionality?
@taozhi8833998
Copy link

table is keyword in sql, using SELECT MONTH(endTime) FROM tableName instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants