Skip to content

Custom or Ignore formatting for a specific function #557

Answered by nene
lucascmelo asked this question in Q&A
Discussion options

You must be logged in to vote

It's really a fundamental bug/shortcoming of the formatter: it thinks it's looking at a SELECT statement inside the EXTRACT() because of the FROM 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).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lucascmelo
Comment options

Answer selected by lucascmelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants