-
Notifications
You must be signed in to change notification settings - Fork 2
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
sql-formatter crash on $$
SQL delimiter
#34
Comments
$$
SQL delimiter
Oh interesting, I just upgraded to
|
Patching -const canonicalDialectName = dialectNameMap[cfg.language || 'sql'];
+const canonicalDialectName = dialectNameMap['postgresql']; Maybe the option is being recognized / passed incorrectly through |
Since this seems more and more like a duplicate of the following issue, I'm going to close this to avoid duplicate comments: |
Hi @Sec-ant , hope you're well! 👋
(very similar to #35, maybe the same issue)
sql-formatter
crashes withprettier-plugin-embed
, embedded SQL in JavaScript/TypeScript template string andprettier-plugin-sql
, when the$$
delimiter is used:a.sql
a.js
At first, from the error message, I thought it was the lack of support for
$$
delimiters:...but the
$$
delimiter does not crash withprettier-plugin-sql
used directly with.sql
files.I logged out the
query
variables in both cases from insideprettier-plugin-sql
, but the query seems to be visually the same...My versions and config, maybe I've configured something incorrectly? 🤔
package.json
prettier.config.mjs
cc @JounQin
The text was updated successfully, but these errors were encountered: