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

Views with a column named 'LEAVE' cause a warning #23

Closed
mailtowim opened this issue Feb 27, 2025 · 4 comments
Closed

Views with a column named 'LEAVE' cause a warning #23

mailtowim opened this issue Feb 27, 2025 · 4 comments

Comments

@mailtowim
Copy link

Views with a column 'LEAVE' cause a warning, which is caused by an exception in ParametricQuery.exec(String expression)

If you add the keyword 'LEAVE' to SqlConverter.KEYWORDS_LIST, the warning goes away.

Having a column 'LEAVE' in a view causes a privilege error.

@spannm
Copy link
Owner

spannm commented Feb 27, 2025

Thanks for raising this issue.

LEAVE is a routine statement in HSQLDB and as such should probably receive special treatment, see https://hsqldb.org/doc/guide/sqlroutines-chapt.html
I will take a closer look soon.

@spannm
Copy link
Owner

spannm commented Mar 7, 2025

Hello @mailtowim,

can you confirm this behavior was encountered while loading an existing view (saved query) from an Access db?
Please attach your minimal Access db (any version) suitable for usage in a JUnit test case (the smaller the better).

cheers
Markus

@mailtowim
Copy link
Author

mailtowim commented Mar 7, 2025

Sample.zip

You can find the zipped access database attached. The name of the view should also contain a space.

Following warning is shown: WARNING: Error message was: unexpected token : ] required: AS

@spannm
Copy link
Owner

spannm commented Mar 9, 2025

Fixed in current snapshot and will be part of next release.
Thanks for reporting!

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