Skip to content

SET ... statement not supported #1945

Closed
@shubhjet

Description

@shubhjet

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, 2024
manticore-projects

manticore-projects commented on Apr 18, 2024

@manticore-projects
Contributor

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, 2024
changed the title [-][BUG] Informix `SET ... TO ... ...` not supported[/-] [+]`SET ...` statement not supported[/+] on May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @manticore-projects@shubhjet

        Issue actions

          `SET ...` statement not supported · Issue #1945 · JSQLParser/JSqlParser