-
Notifications
You must be signed in to change notification settings - Fork 29
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
Several PostgreSQL operators are incorrectly split in two #52
Comments
Some other examples that are wrongly split:
Notice that this is only a tiny subset of postgres supported operators. You can get the full list by running
Additionally you are allowed to create your own operator through I agree with @Diggsey that the tokenizer should avoid splitting sequences of the above symbols in order to be safe. Currently it breaks queries using such operators. |
With #57 merged in I think this issue is solved. Any chance we could get a release so I can update my library that depends on sqlformat-rs? Really appreciate the effort you put into this library! |
Pushed a new release, please let me know if this is still an issue. Thanks. |
Some examples I've encountered:
<->
< ->
<=>
<= >
&&
& &
@>
@ >
There are probably many more. I think the formatter should avoid splitting adjacent symbols like this entirely.
The text was updated successfully, but these errors were encountered: