Skip to content

Commit

Permalink
Update ChangeLog and version to 3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Nov 20, 2018
1 parent 2fac61c commit c1cb4d2
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 7 deletions.
39 changes: 39 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/pgFormatter/Beautify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/pgFormatter/CGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions lib/pgFormatter/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pg_format
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1cb4d2

Please sign in to comment.