Custom or Ignore formatting for a specific function #557
-
Hey all. So, do you guys know if I can ignore a specific formatting function on postgresql? This is my query formatted:
And I would like to make the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's really a fundamental bug/shortcoming of the formatter: it thinks it's looking at a Unfortunately no good workaround for this. I've started to work on a brand new formatting tool, which won't be fooled by situations like this. It's still in early stages of development though and it doesn't yet support Postgres (well, for now it only supports subset of SQLite). |
Beta Was this translation helpful? Give feedback.
It's really a fundamental bug/shortcoming of the formatter: it thinks it's looking at a
SELECT
statement inside theEXTRACT()
because of theFROM
keyword.Unfortunately no good workaround for this.
I've started to work on a brand new formatting tool, which won't be fooled by situations like this. It's still in early stages of development though and it doesn't yet support Postgres (well, for now it only supports subset of SQLite).