Skip to content

v1.5.4

Choose a tag to compare

@gmr gmr released this 27 Nov 02:57
· 2 commits to main since this release
v1.5.4
e4fc49f

Fixed

  • INSERT ... ON CONFLICT (col) WHERE predicate keeps the partial index predicate. It was dropped (gmr/pgfmt#18). #76
  • A JOIN group in redundant parentheses, FROM ((a JOIN b ON ...) JOIN c ON ...), is formatted. The whole FROM clause was dropped (gmr/pgfmt#19). #76
  • An aliased JOIN group, (a JOIN b ON ...) AS j, keeps its parentheses and alias. References to the alias were invalid. #78
  • JOIN ... USING (cols) AS alias keeps its join alias. #80
  • A subquery in an AND/OR condition after the first, for example AND NOT EXISTS (SELECT ...), lines up under its condition. It was indented too far to the right (gmr/pgfmt#20). The same applies to later JOIN ON and HAVING conditions. #82
  • Whitespace handling no longer changes the meaning of SQL: #85
    • A part that continues an E'...' constant on the next line keeps its value, and a second pass gives the same output.
    • A bare carriage return is a newline, so a -- comment that ends at one does not comment out the code after it.
    • A no-break space (U+00A0) in an unquoted identifier is kept, so the identifier is not split into a name and an alias.
  • A multi-line dollar-quoted value ($$...$$, $tag$...$tag$) in an expression keeps its value. Layout re-indented its inner lines. Routine bodies are re-indented as before. #86