-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
between's "and" split like logical operator #124
Comments
Thanks for the report, @WestComputing! I agree with you that a single I was going to propose using parens as a workaround, but unfortunately that introduces its own problems. To fix this, we're going to need to use more context when either parsing or deciding to split a line before the Until then, you can use
|
Thanks for your speedy response, Ted! In looking at your code, I didn't think it was going to be a quick fix for the reason you mentioned. I appreciate your efforts! |
@WestComputing Had some time this morning; this is now fixed and the patch has been released as v0.5.1. Thanks for using sqlfmt! |
Describe the bug
When using
between ___ and ____
, the line is always split before theand
To Reproduce
Use the
between
operator in awhere
clause, such as the following:Expected behavior
Actual behavior
Additional context
The text was updated successfully, but these errors were encountered: