-
Notifications
You must be signed in to change notification settings - Fork 392
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
When there is "false" in SQL, the format will fail #147
Comments
The tool is unusable like this
|
Hi, can you confirm if this is still an issue here: https://inferrinizzard.github.io/prettier-sql/ ? |
Hi, this issue is fixed in my fork here: |
exact the same issue, reported the following error by using 4.0.2 version:
my example SQL: select `topics` . `id` from `topics` left outer join `categories` on `categories` . `id` = `topics` . `category_id` where ( `topics` . `archetype` <> ? ) and ( coalesce ( `categories` . `topic_id` , ? ) <> `topics` . `id` ) and `topics` . `visible` = true and ( `topics` . `deleted_at` is ? ) and ( `topics` . `category_id` is ? or `topics` . `category_id` in ( ... ) ) and ( `topics` . `category_id` != ? ) and `topics` . `closed` = false and `topics` . `archived` = false and ( `topics` . `created_at` > ? ) order by `rand` ( ) limit ? |
Big thanks @inferrinizzard , your fork resolves my issue! |
Fixed also in latest master. |
input
There will be errors during the formatting process, and the test will fail in thisonline site. The current version is 4.0.2, but it is normal to use 2.3.3.
The text was updated successfully, but these errors were encountered: