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
Fix order by clause missing "order by" #3853
base: main
Are you sure you want to change the base?
Conversation
The generated ORDER BY clause is incorrect, leading to syntax errors in the resulting query. The ELSE branch in lines 64-55 does it correctly. I'm not set up to add/run tests for this, but I think this change should be looked at ASAP since the bug breaks a lot of queries.
@el-hackerino can you please provide an example query where this is causing issues? This code has been like this since 2017 and we have not received any issues about it. Perhaps you are using it incorrectly. How are you passing the |
We're using a NativeQuery and passing the
Since Flowable 7.0, the result is
because of this commit changing
into
in db2.properties. The new |
@el-hackerino can you please share the java code you are using for this? |
@el-hackerino I've added a test case for this and I'll merge it once the tests pass. |
The generated ORDER BY clause is incorrect, leading to syntax errors in the resulting query. The ELSE branch in lines 64-55 did it correctly (but I refactored the code to combine the code).
I'm not set up to add/run tests for this, but I think this change should be looked at ASAP since the bug breaks a lot of queries.
Check List: