-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
OVER clause lost from row_number functions. #390
Comments
Thanks for looking into it @solnic :) Hopefully it's not too much of a headache! 🤞🏻 |
Previous, function options would be lost Closes #390
Previous, function options would be lost Closes #390
@pat this should be fixed in 3.3.2 - please upgrade and let me know if this works for you now |
Yup, all green on my side - thanks for such a quick fix! |
Meant to report this sooner, but been caught up with other things - this fix seems to have been lost between the 3.3.2 and 3.3.3 releases? It's not present in 3.4.0 either. |
@pat oh shit you're right 😭 I must've messed up release branches / master merging/rebasing 😭 I'll cherry-pick the fix commit into release-3.5 so it'll be available in version 3.5.0. Sorry about that... |
No worries, completely understandable how these things happen :) |
Previous, function options would be lost Closes #390
@pat 🙂 OK I just pushed 3.5.0 which includes the fix again https://github.com/rom-rb/rom-sql/releases/tag/v3.5.0 |
Many thanks, my build's green again with that upgrade :) |
I'm finding that - in both v3.3.0 and v3.3.1 - the OVER part of a ROW_NUMBER() function is lost from the generated SQL statement. I'm guessing that it's due to #373, but that's purely because it seems to be the only related change since v3.2.0. Perhaps it's something else? 🤷🏻♂️
The
ROW_NUMBER()
and alias both remain, but theOVER (...)
part is lost somehow. Here's a script that reproduces the issue (and if you change the bundled version of rom-sql to 3.2.0, you'll find the tests pass:My environment
The text was updated successfully, but these errors were encountered: