Skip to content

Commit

Permalink
Update ChangeLog and version to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilles Darold committed Feb 11, 2021
1 parent 5ff4f95 commit aa96344
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 10 deletions.
70 changes: 70 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,73 @@
February 11 2021 - v5.0

This major release fixes issues reported by users since the last six
months with some improvements and new features.

New options and features:

* Add new option -M | --multiline to enable multi-line search
with placeholder regexp specified at command line with -p
or --placeholder.
* Fix improper handling of constants between quotes in all kind
of queries and especially in function body. They were sometime
corrupted by extra space before of after single quotes or some
words was identified as keywords and turned upper case.
* Add keywords ALWAYS, DISABLE, ENABLE, LEVEL and STORED.
* Improve formatting of CREATE POLICY which doesn't the need anymore
that alternate formatting (-t) be enabled.
* More fix of false positive keywords detection following their place.
* Add REGCLASS, REGCONFIG, REGDICTIONARY, REGNAMESPACE, REGOPER,
REGOPERATOR, REGPROC, REGPROCEDURE, REGROLE, REGTYPE, to list of
data types.

Here is the complete list of changes and acknowledgments:

- Fix false positive detection of keyword following their place.
Thanks to allprecisely for the report.
- Add quick regression test for constant handling.
- Fix formatting for RAISE, CAST and EXCEPTION.
- Fix case of NEW/OLD in triggers code
- Fix improper handling of columns and tables aliases between
double quotes.
- Don't assume HOME variable exists in Makefile.PL. Thanks to
Samyak Bakliwal for the patch.
- Add new option -M | --multiline to enable multi-line search
with placeholder regexp specified at command line with -p
or --placeholder. Thanks to Taro Sato for the feature request.
- Fix generated columns formatting. Thanks to Oliver Ni for the
report.
- Include regression test to not wrap URL hint and update the
documentation.
- Adding example for regular expression preserving the URL and
to prevent it from being wrapped. Thanks to Clement Aubert for
the patch.
- Improve RLS policy formatting when alternate format is enabled.
Thanks to madflow for the report.
- Change download URL in favor of GitHub releases.
- Fix detection of identifier with quoted schema and/or table.
Thanks to Robert for the report.
- Fix formatting of numbers with signed exponents. Thanks to Jakob
Egger for the report.
- Fix HTML footer in CGI mode.
- Fix formatting of CREATE TABLE using a CTE. Thanks to prichardson211
for the report.
- Replace deprecated TG_RELNAME with TG_TABLE_NAME. Thanks to Andreas
Karlsson fot the patch.
- Fix regression in COPY formatting. Thanks to Paul Melnikow for the
report.
- Fix CTE formatting with NOT MATERIALIZED clause. Thanks to Sergey
Shepelev for the report.
- Update regression tests with the addition of oid types and fix
for C functions formatting.
- Fix error format string for extra-function and 2 typos. Thanks to
Sven Klemm for the patch.
- Fix formatting for C functions with obj_file and link_symbol.
Thanks to Sven Klemm for the patch.
- Fix typo in CGI text. Thanks to Justin Hawkins for the report.
- Add oid types to list of data types. Thanks to Sven Klemm for
the patch.


August 31 2020 - v4.4

This is a maintenance release to fix issues reported by users since
Expand Down
6 changes: 3 additions & 3 deletions lib/pgFormatter/Beautify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ pgFormatter::Beautify - Library for pretty-printing SQL queries
=head1 VERSION
Version 4.4
Version 5.0
=cut

# Version of pgFormatter
our $VERSION = '4.4';
our $VERSION = '5.0';

# Inclusion of code from Perl package SQL::Beautify
# Copyright (C) 2009 by Jonas Kramer
Expand Down Expand Up @@ -4315,7 +4315,7 @@ Please report any bugs or feature requests to: https://github.com/darold/pgForma
=head1 COPYRIGHT
Copyright 2012-2020 Gilles Darold. All rights reserved.
Copyright 2012-2021 Gilles Darold. All rights reserved.
=head1 LICENSE
Expand Down
6 changes: 3 additions & 3 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 4.4
Version 5.0
=cut

# Version of pgFormatter
our $VERSION = '4.4';
our $VERSION = '5.0';

use pgFormatter::Beautify;
use File::Basename;
Expand Down Expand Up @@ -644,7 +644,7 @@ Please report any bugs or feature requests to: https://github.com/darold/pgForma
=head1 COPYRIGHT
Copyright 2012-2020 Gilles Darold. All rights reserved.
Copyright 2012-2021 Gilles Darold. All rights reserved.
=head1 LICENSE
Expand Down
6 changes: 3 additions & 3 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 4.4
Version 5.0
=cut

# Version of pgFormatter
our $VERSION = '4.4';
our $VERSION = '5.0';

use autodie;
use pgFormatter::Beautify;
Expand Down Expand Up @@ -462,7 +462,7 @@ Please report any bugs or feature requests to: https://github.com/darold/pgForma
=head1 COPYRIGHT
Copyright 2012-2020 Gilles Darold. All rights reserved.
Copyright 2012-2021 Gilles Darold. All rights reserved.
=head1 LICENSE
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 = '4.4';
our $VERSION = '5.0';

# Find out whether current run should be treated as CGI or CLI
my $program;
Expand Down

0 comments on commit aa96344

Please sign in to comment.