From 1ce343debc797b49356c8adc60ef18135b6a78c1 Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Wed, 11 Jan 2023 09:08:47 +0100 Subject: [PATCH] Update CHangeLog and version to 5.4 --- ChangeLog | 40 +++++++++++++++++++++++++++++++++++++ lib/pgFormatter/Beautify.pm | 4 ++-- lib/pgFormatter/CGI.pm | 4 ++-- lib/pgFormatter/CLI.pm | 4 ++-- 4 files changed, 46 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73a24d5..adf588e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,43 @@ +January 11 2022 - v5.4 + +This maintenance release fixes issues reported by users since the last five +months with some improvements and new features. + +New options and features: + + - Add option --no-space-function, when used pgFormatter removes the + space character between a function call and the open parenthesis that + follow. By default pgFormatter adds a space character, for example: + DROP FUNCTION IF EXISTS app_public.hello (a text); + When this option is used the resulting query is formatted as follow: + DROP FUNCTION IF EXISTS app_public.hello(a text); + Available in CGI mode as a checkbox. + - Add command line option --extra-keyword to apply keywords formatting to + a list of additional keywords defined in a file (one keyword per line). + You can also pass a special value 'redshift' instead of a path to a file + to use the keywords defined internally in pgFormatter for this database. + This was historically possible through the -r | --redshift option that + is now obsolete and will be removed in the future. Thanks to Thom Brown + for the feature request. + +Here is the complete list of changes and acknowledgments: + + - Add option --no-space-function. Thanks to Aaron Merryman for the feature + request. + - Fix particular case of alias with double quote. Thanks to Carl Jackson + for the report. + - Fix some lines involuntary turned to comment. Thanks to Daniel Kukula + for the report. + - Fix CREATE DOMAIN formatting. Thanks to Daniel Kukula for the report. + - Add formatting of code from SQL function. + - Fix wrong indentation in ORDER BY clause. Thanks to Thom Brown for + the report. + - Fix CREATE TRIGGER formatting when there is a OR REPLACE clause. Thanks + to hexcowboy for the report. + - Fix documentation by using variable based installation instruction. + Thanks to Lav Patel for the patch. + - Add the possibility to format in place multiple files. Thanks to Benjamin + Yolken for the report. August 07 2022 - v5.3 diff --git a/lib/pgFormatter/Beautify.pm b/lib/pgFormatter/Beautify.pm index fae53c7..f62f406 100755 --- a/lib/pgFormatter/Beautify.pm +++ b/lib/pgFormatter/Beautify.pm @@ -27,12 +27,12 @@ pgFormatter::Beautify - Library for pretty-printing SQL queries =head1 VERSION -Version 5.3 +Version 5.4 =cut # Version of pgFormatter -our $VERSION = '5.3'; +our $VERSION = '5.4'; # Inclusion of code from Perl package SQL::Beautify # Copyright (C) 2009 by Jonas Kramer diff --git a/lib/pgFormatter/CGI.pm b/lib/pgFormatter/CGI.pm index aaf3416..d4f482b 100755 --- a/lib/pgFormatter/CGI.pm +++ b/lib/pgFormatter/CGI.pm @@ -11,12 +11,12 @@ pgFormatter::CGI - Implementation of CGI-BIN script to format SQL queries. =head1 VERSION -Version 5.3 +Version 5.4 =cut # Version of pgFormatter -our $VERSION = '5.3'; +our $VERSION = '5.4'; use pgFormatter::Beautify; use File::Basename; diff --git a/lib/pgFormatter/CLI.pm b/lib/pgFormatter/CLI.pm index 9bd7b31..3dd0b4d 100755 --- a/lib/pgFormatter/CLI.pm +++ b/lib/pgFormatter/CLI.pm @@ -15,12 +15,12 @@ pgFormatter::CLI - Implementation of command line program to format SQL queries. =head1 VERSION -Version 5.3 +Version 5.4 =cut # Version of pgFormatter -our $VERSION = '5.3'; +our $VERSION = '5.4'; use autodie; use pgFormatter::Beautify;