Skip to content

SqlWindowingPagingQueryProvider does not generate correct SQL for Oracle [BATCH-2166] #1430

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

Open
spring-projects-issues opened this issue Jan 17, 2014 · 3 comments
Labels
in: infrastructure status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter type: bug

Comments

@spring-projects-issues
Copy link
Collaborator

Philippe BAYE opened BATCH-2166 and commented

The generated SQL requests look like this (for both first page & remaining pages) :
SELECT * from (....) AS TMP_SUB WHERE ...

But for Oracle, the correct SQL requests look like this :
SELECT * from (....) TMP_SUB WHERE ...

The problem is located in the getSubQueryAlias() method.

In previous version (2.0.4) the SQL requests are corrected.


Affects: 2.1.9

@spring-projects-issues
Copy link
Collaborator Author

Michael Minella commented

Does this occur on the 2.2.x branch as well?

@spring-projects-issues
Copy link
Collaborator Author

Philippe BAYE commented

I think so.

I did not test it, but only read the source code of the same class (for 2.2.3 version)
It appears that the SQL request builder uses the same syntax (through getSubQueryAlias method)

@cppwfs
Copy link
Contributor

cppwfs commented Jul 25, 2023

Thank you for opening the issue. Can you retry with the latest release of Spring Batch(5.0.2) and report back the results?
If the issue is reproducible, can you provide a sample project that uses the latest release of Spring Batch and that exhibits the behavior? To help you in reporting your issue, we have prepared a project template that you can use as a starting point. Please check the Issue Reporting Guidelines for more details about this.

@cppwfs cppwfs added status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter and removed status: waiting-for-triage Issues that we did not analyse yet labels Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: infrastructure status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter type: bug
Projects
None yet
Development

No branches or pull requests

2 participants