From c1cb4d21c9c71af36de4b3c4bc7f779f9c9f949d Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Tue, 20 Nov 2018 12:00:01 +0100 Subject: [PATCH] Update ChangeLog and version to 3.3. --- ChangeLog | 39 +++++++++++++++++++++++++++++++++++++ lib/pgFormatter/Beautify.pm | 4 ++-- lib/pgFormatter/CGI.pm | 4 ++-- lib/pgFormatter/CLI.pm | 4 ++-- pg_format | 2 +- 5 files changed, 46 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 68edd6e..b327de2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,42 @@ +November 20 2018 - v3.3 + +This minor release fixes several issues reported by users since last +release, adds and improves some code formatting: + + * Add formatting of GROUPING and ROLLUP clause. + * Replace concat operator from some SGBD with operator ||. + * Add formatting of FILTER and WITHIN GROUP clause. + * Fix several wrong formatting with comment. + * Improve arrays formatting. + * Treat DISTINCT as a modifier of the whole select clause. + * Fix formatting of ON UPDATE/DELETE in create table statements. + * Add DETACH,ATTACH,LIST,HASH,MODULUS and REMINDER to keywords list. + * Add formatting of CREATE PARTITION STATEMENT. + +Here is the complete list of changes and acknowledgments: + + - Add extra newline after a comment when it is not in a block or a + statement. Thanks to Aaron Reisman for the report. + - Fix inline comments that was wrongly moved after a new line in + some case. + - Fix case where comments that was not moved to next line. + - Trim trailing space in comment. Thanks to Aaron Reisman for the + report. + - Add formatting of FILTER clause. Thanks to Leonardo Rochael + Almeida for the report. + - Update regression test expected on queries using ARRAY[...]. + - Remove newline after comma in ARRAY[...] definition. + - Remove space before and after array braket. Thanks to Peter + Boromissza for the report. + - Add FILTER keyword and some missing aggregate functions. Thanks + to Leonardo Rochael Almeida for the report. + - Fix formatting of ON UPDATE/DELETE in create table statements. + Thanks to Peter Boromissza for the report. + - Update regression tests with last changes. + - Treat DISTINCT as a modifier of the whole select clause not only + the fisrt column. Thanks to report of Leonardo Rochael Almeida. + - Fix some typo in documentation. Thanks to 0xflotus for the patch. + October 08 2018 - v3.2 This minor release adds support to PostgreSQL v11.0 new keywords diff --git a/lib/pgFormatter/Beautify.pm b/lib/pgFormatter/Beautify.pm index 20ef157..62fd4dd 100755 --- a/lib/pgFormatter/Beautify.pm +++ b/lib/pgFormatter/Beautify.pm @@ -14,12 +14,12 @@ pgFormatter::Beautify - Library for pretty-printing SQL queries =head1 VERSION -Version 3.2 +Version 3.3 =cut # Version of pgFormatter -our $VERSION = '3.2'; +our $VERSION = '3.3'; # 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 7d49d08..b74a0ab 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 3.2 +Version 3.3 =cut # Version of pgFormatter -our $VERSION = '3.2'; +our $VERSION = '3.3'; use pgFormatter::Beautify; use File::Basename; diff --git a/lib/pgFormatter/CLI.pm b/lib/pgFormatter/CLI.pm index 33e625a..79b1f31 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 3.2 +Version 3.3 =cut # Version of pgFormatter -our $VERSION = '3.2'; +our $VERSION = '3.3'; use autodie; use pgFormatter::Beautify; diff --git a/pg_format b/pg_format index 542b59f..2853e1e 100755 --- a/pg_format +++ b/pg_format @@ -33,7 +33,7 @@ local $SIG{ __WARN__ } = sub { use FindBin; use lib "$FindBin::RealBin/lib"; -our $VERSION = '3.2'; +our $VERSION = '3.3'; # Find out whether current run should be treated as CGI or CLI my $program;