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

Can't parse type in Oracle's varchar2 #273

Closed
vincent-fuchs opened this issue May 25, 2016 · 0 comments
Closed

Can't parse type in Oracle's varchar2 #273

vincent-fuchs opened this issue May 25, 2016 · 0 comments

Comments

@vincent-fuchs
Copy link

Hi,

Using v0.9.5, parsing this valid Oracle statement, I'm getting an error :

CREATE TABLE IF NOT EXISTS "TABLE_OK"  ("SOME_FIELD"    VARCHAR2(256 BYTE));

error :

Caused by: net.sf.jsqlparser.parser.ParseException: Encountered " <S_IDENTIFIER> "BYTE "" at line   1, column 70.
Was expecting one of:
<S_LONG> ...
<S_CHAR_LITERAL> ...

If I don't specify BYTE, it works.

Note : both BYTE and CHAR should be accepted : https://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i1835

vincent-fuchs added a commit to vincent-fuchs/custom-build-rules that referenced this issue May 27, 2016
vincent-fuchs added a commit to vincent-fuchs/custom-build-rules that referenced this issue Jun 10, 2016
@wumpz wumpz closed this as completed in 12b4a1e Jul 6, 2018
wumpz added a commit that referenced this issue Jul 6, 2018
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

1 participant