Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

fix(c/sql): use the legacy parser as fall back #9630

Merged

Conversation

zregvart
Copy link
Member

@zregvart zregvart commented Jun 7, 2021

The JSQLParser we use is currently not aware of some of the proprietary
SQL syntax PostgreSQL supports and it is strict (as parsers are) as to
the correct syntax of SQL it can parse. This came up in issues like
ENTESB-16608 and ENTESB-16609, so as a strategy to help when SQL
statement parsing fails this brings the legacy parser, the parser used
before we switched to JSQLParser as a fall back. Now when a statement
can't be parsed using JSQLParser an attempt is made to parse the
statement using the legacy parser. If the legacy parser fails, the
original error is reported, i.e. the one from JSQLParser.

Ref. https://issues.redhat.com/browse/ENTESB-16608
Ref. https://issues.redhat.com/browse/ENTESB-16609

@zregvart zregvart force-pushed the issue/ENTESB-16608-and-ENTESB-16609 branch from 7ce82dc to 21afbe4 Compare June 7, 2021 10:36
The JSQLParser we use is currently not aware of some of the proprietary
SQL syntax PostgreSQL supports and it is strict (as parsers are) as to
the correct syntax of SQL it can parse. This came up in issues like
ENTESB-16608 and ENTESB-16609, so as a strategy to help when SQL
statement parsing fails this brings the legacy parser, the parser used
before we switched to JSQLParser as a fall back. Now when a statement
can't be parsed using JSQLParser an attempt is made to parse the
statement using the legacy parser. If the legacy parser fails, the
original error is reported, i.e. the one from JSQLParser.

Ref. https://issues.redhat.com/browse/ENTESB-16608
Ref. https://issues.redhat.com/browse/ENTESB-16609
@zregvart zregvart force-pushed the issue/ENTESB-16608-and-ENTESB-16609 branch from 21afbe4 to 2d8607a Compare June 7, 2021 10:50
@mkralik3
Copy link
Contributor

mkralik3 commented Jun 7, 2021

Verified that the integration from ENTESB-16609 is able to be edited and query from ENTESB-16608 is able to be used.

@zregvart
Copy link
Member Author

zregvart commented Jun 7, 2021

Verified that the integration from ENTESB-16609 is able to be edited and query from ENTESB-16608 is able to be used.

Thanks!

@zregvart zregvart merged commit f6738a6 into syndesisio:1.12.x Jun 7, 2021
@zregvart zregvart deleted the issue/ENTESB-16608-and-ENTESB-16609 branch June 7, 2021 14:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants