You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently wanted to try your formatter, which seems btw working very great and stable.
Unfortunately, I stumble upon a problem that my SQL code has been formatted in a way that stopped working while executing while doing migrations. Hope this might help you better structure your formatter. & keep being awesome :)
Code that works fine:
DO $$
BEGIN IF NOT EXISTS (
SELECT1FROM
pg_type
WHERE
typname ='translations_statuses'
) THEN CREATE TYPE translations_statuses AS ENUM (
'todo',
'in_progress',
'to_verify',
'to_accept',
'rejected',
'accepted'
);
END IF;
END $$;
Code after formatting which does not work:
DO $ $ BEGIN IF NOT EXISTS (
SELECT1FROM
pg_type
WHERE
typname ='translations_statuses'
) THEN CREATE TYPE translations_statuses AS ENUM (
'todo',
'in_progress',
'to_verify',
'to_accept',
'rejected',
'accepted'
);
END IF;
END $ $;
sql-formatter version: v4.0.0
The text was updated successfully, but these errors were encountered:
Hey, thanks for your attention upfront.
I recently wanted to try your formatter, which seems btw working very great and stable.
Unfortunately, I stumble upon a problem that my SQL code has been formatted in a way that stopped working while executing while doing migrations. Hope this might help you better structure your formatter. & keep being awesome :)
Code that works fine:
Code after formatting which does not work:
sql-formatter version: v4.0.0
The text was updated successfully, but these errors were encountered: