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

rownumber hints in combination with mssql are not working. #302

Closed
nielsm5 opened this issue Sep 18, 2024 · 0 comments · Fixed by #307
Closed

rownumber hints in combination with mssql are not working. #302

nielsm5 opened this issue Sep 18, 2024 · 0 comments · Fixed by #307

Comments

@nielsm5
Copy link
Contributor

nielsm5 commented Sep 18, 2024

When using MS SQL in the DatabaseStorage the dbmsSupport.getRowNumber(metadataNames.get(0), "desc"); class is called, which returns a row_number() over (order by ... hint.

I left everything default and the database did not work for me, after changing the following:
String rowNumber = ""; //return empty instead of calling dbmsSupport.getRowNumber(metadataNames.get(0), "desc"); (in the DatabaseStorage#buildMetadataQuery method).

it worked again for me.

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

Successfully merging a pull request may close this issue.

1 participant