github sql-formatter-org/sql-formatter v9.0.0-beta1
9.0.0-beta1

latest releases: v15.6.9, v15.6.8, v15.6.7...
pre-release3 years ago

New approach to function call matching

This release brings a major change to how function calls are detected:

  • Only known builtin function names are now formatted like TRIM()
  • Any other function calls (e.g. user-defined functions) get formatted as MY_FUNC ()

This fixes a long-standing problem where the format of input SQL effected output SQL. For example, if input contained TRIM (), then it was formatted as TRIM () and when it contained TRIM() then it was formatted as TRIM(). This in turn lead to problems where re-formatting an already formatted SQL could lead to different result. #140

Don't miss a new sql-formatter release

NewReleases is sending notifications on new releases.