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
query statements may not start using the 'WITH' keyword #984
Comments
that is a good report! the I think it's fair to say that fix would be welcome: citrus/connectors/citrus-sql/src/main/java/org/citrusframework/actions/ExecuteSQLQueryAction.java Line 339 in f210123
do you need it backported to 3.x, or is it okay to include into 4.x @leonschenk? |
@bbortt thank you! I will be fine with the workaround for now. |
the `WITH` clause (also known as Common Table Expressions (CTEs)) is part of the SQL standard SQL:1999. according to the [list of SQL reserved words](https://en.wikipedia.org/wiki/List_of_SQL_reserved_words) all modern databases support it (as they should).
allow WITH sql keyword for query action
chore: remove automatic sql variable extraction
Citrus Version
3.4.0
Expected behavior
The statement/query, starting with the keyword 'WITH' instead of 'SELECT' will be executed.
Actual behavior
Exception is thrown while validating the statement, before executing.
Test case sample
Workaround:
The text was updated successfully, but these errors were encountered: