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

error has occurred as bellow when i tried to parsing above query ..... #324

Closed
ytechinfo opened this issue Aug 14, 2016 · 3 comments
Closed

Comments

@ytechinfo
Copy link

query :
create table ccc{
aaa varchar(10)
}

error has occured as bellow when i tried to analyze above query ,
so i want you to throw the error "CCJSqlParserTokenManager.getNextToken"

thank you.

net.sf.jsqlparser.parser.TokenMgrError: Lexical error at line 1, column 19. Encountered: "\n" (10), after : "{"
at net.sf.jsqlparser.parser.CCJSqlParserTokenManager.getNextToken(CCJSqlParserTokenManager.java:2267)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_scan_token(CCJSqlParser.java:13862)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_3_14(CCJSqlParser.java:11611)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_2_14(CCJSqlParser.java:8417)
at net.sf.jsqlparser.parser.CCJSqlParser.Table(CCJSqlParser.java:1610)
at net.sf.jsqlparser.parser.CCJSqlParser.CreateTable(CCJSqlParser.java:7210)
at net.sf.jsqlparser.parser.CCJSqlParser.SingleStatement(CCJSqlParser.java:143)
at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:68)

@wumpz
Copy link
Member

wumpz commented Aug 14, 2016

Right. JSqlParser does not support curly braces. Use ( ) instead.

@wumpz wumpz closed this as completed Aug 15, 2016
@ytechinfo
Copy link
Author

ytechinfo commented Aug 15, 2016

I know, but I would like to use my log for the
successful query and error query both to divide,
but I couldn't catch the log for the below part & inquired for them.

So, pls kindly understand & help me.

Thank you.

@wumpz
Copy link
Member

wumpz commented Aug 17, 2016

Sorry, I couldnt catch you. I did not understand you.

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