Skip to content

Commit

Permalink
Update CHangeLog and version to 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Jan 11, 2023
1 parent 3020a7d commit 1ce343d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 6 deletions.
40 changes: 40 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions lib/pgFormatter/Beautify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 5.3
Version 5.4
=cut

# Version of pgFormatter
our $VERSION = '5.3';
our $VERSION = '5.4';

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 5.3
Version 5.4
=cut

# Version of pgFormatter
our $VERSION = '5.3';
our $VERSION = '5.4';

use autodie;
use pgFormatter::Beautify;
Expand Down

0 comments on commit 1ce343d

Please sign in to comment.