Custom or Ignore formatting for a specific function #557
Answered
by
nene
lucascmelo
asked this question in
Q&A
|
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 |
Answered by
nene
Jan 31, 2023
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). |
1 reply
Answer selected by
lucascmelo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's really a fundamental bug/shortcoming of the formatter: it thinks it's looking at a
SELECTstatement inside theEXTRACT()because of theFROMkeyword.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).