The Wayback Machine - https://web.archive.org/web/20201011182210/https://github.com/JSQLParser/JSqlParser/issues/214
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

Not parsing the sql with "AT TIME ZONE" operator #214

Open
chandansh opened this issue Jan 28, 2016 · 0 comments
Open

Not parsing the sql with "AT TIME ZONE" operator #214

chandansh opened this issue Jan 28, 2016 · 0 comments

Comments

@chandansh
Copy link

@chandansh chandansh commented Jan 28, 2016

I am parsing a query with "AT TIME ZONE" operator and getting the error.

query: select systimestamp AT TIME ZONE 'US/Eastern' from dual;

error: net.sf.jsqlparser.JSQLParserException
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:51)
at com.sabre.apd.as.cem.ixintegration.ChandanTest1.main(ChandanTest1.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " <S_IDENTIFIER> "TIME "" at line 1, column 111.
Was expecting one of:

"INTO" ...
"FROM" ...
"WHERE" ...
"FOR" ...
"GROUP" ...
"HAVING" ...
"START" ...
"CONNECT" ...

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.