You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Steps to reproduce the behavior:
use "SELECT * FROM stores_demo:informix.accounts;" with Informix database and get
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: ":" ":"
at line 2, column 17.
at net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:26538)
at net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:26377)
at net.sf.jsqlparser.parser.CCJSqlParser.Statement(CCJSqlParser.java:91)
I kind of introduced this parsing half way. Now you are able to parse it, but the deparser is not there. Producing the source SQL results in the point way again.
It is impossible to support both at the same time, but we could apply a Configuration Switch, e. g. an INFORMIX mode for you.
I definitely need this JSON support, but I also want to support your needs -- so please make a wish on what would be the best way forward on this rather exotic feature.
Activity
issue #1134 adressed
wumpz commentedon Mar 20, 2021
I kind of introduced this parsing half way. Now you are able to parse it, but the deparser is not there. Producing the source SQL results in the point way again.
wumpz commentedon Mar 25, 2021
@LonwoLonwo Does it work?
LonwoLonwo commentedon Mar 29, 2021
Hello, @wumpz
Sorry for late response.
Yes, it works for parsing.
I don't now your workflow, so I just say - ticket can be closed.
manticore-projects commentedon Aug 6, 2021
Closed on behalf of the author.
manticore-projects commentedon Nov 16, 2024
@LonwoLonwo
we are facing a problem here: in any modern RDBMS
:is a Json Operator forEXTRACT FROM PATHe. g.:It is impossible to support both at the same time, but we could apply a Configuration Switch, e. g. an
INFORMIXmode for you.I definitely need this JSON support, but I also want to support your needs -- so please make a wish on what would be the best way forward on this rather exotic feature.
manticore-projects commentedon Nov 16, 2024
I have solved it by allowing
:forTablenames only, while:will return aJSOnExpressioneverywhere else.feat: proper `:` JSon operator