GeezerVison is showing github.com — `SET ...` statement not supported · Issue #1945 · JSQLParser/JSqlParser
SET ... statement not supported #1945
Description
I am using Informix and JSQParser to parse the SQL statements.:
set isolation to dirty read;
Activity
changed the title
[-][BUG] JSQLParser Version :4.7 : Failing to parse informix isolation level statement[/-] [+][BUG] JSQLParser Version :4.7 : Informix `SET ... TO ... ...` not supported[/+] on Apr 8, 2024manticore-projects commented on Apr 18, 2024
Greetings.
With latest JSQLParser-4.10 Snapshot, you can parse your RDBMS specific statement like:
String sqlStr = "set isolation to dirty read;";
Statement statement = CCJSqlParserUtil.parse(
sqlStr,
parser -> parser.withUnsupportedStatements(true) );
Assertions.assertInstanceOf(UnsupportedStatement.class, statement);
TestUtils.assertStatementCanBeDeparsedAs(statement, sqlStr, true);
This should be good enough for anything, that is not a Query or a DML or a standard compliant DDL -- unless there was a very strong reason to access the details of the statement.
I am going to close most RDBMS specific DDL issues in this regard.
changed the title
[-][BUG] JSQLParser Version :4.7 : Informix `SET ... TO ... ...` not supported[/-] [+][BUG] Informix `SET ... TO ... ...` not supported[/+] on Apr 18, 2024changed the title
[-][BUG] Informix `SET ... TO ... ...` not supported[/-] [+]`SET ...` statement not supported[/+] on May 1, 2024
Metadata
Metadata
Development
No branches or pull requestsIssue actions