Skip to content

Commit

Permalink
Update Changelog and version to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed May 7, 2017
1 parent faaf68e commit 6ec41f2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
34 changes: 33 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
January 23 2017 - v1.6
May 07 2017 - v2.0

This major release adds a plpgsql code beautifier. This makes pgFormatter
the best free tool to rewrite and beautify any SQL and PLPGSQL code. This
release also fixes several issues and adds lot of improvements in code
formatting.

- Add PLPGSQL beautifier.
- Fix case sensitivity of plpgsql keywords when using the -u command line
option. Thanks to Hubert Depesz Lubaczewski for the report.
- Add regression tests script regress_test.pl, more test files and expected
results.
- Do not append newline before a concatenation operator.
- Fix unitialized variable issue and remove newline in insert statement
after a close parenthesis.
- Remove comment before HTML beautifier and restore them after to prevent
beautifying keywords in comments.
- Improve formatting of UPDATE and DELETE statement.
- Improve all DDL statements formatting.
- Only format functions when name is followed by an open parenthesis.
- Add support for AWS Redshift keywords. Thanks to cavanaug for the feature
request.
- Prevent new line after a comma in parameters function.
- Add LATERAL keyword.
- Remove new line between UNION and ALL.
- Add RETURNING as far left keyword.
- Fix some potential case sensitivity issues.
- Replace tabulation with space for better indentation.
- Prevent newline in USING clause of JOIN.
- Prevent newline after a closing parenthesis but before an operator.
- Prevent new line when a comma is followed by a quote

January 23 2017 - v2.0

This release fixes several issues and adds lot of improvements in
query formatting.
Expand Down
4 changes: 2 additions & 2 deletions lib/pgFormatter/Beautify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ pgFormatter::Beautify - Library for pretty-printing SQL queries
=head1 VERSION
Version 1.6
Version 2.0
=cut

# Version of pgFormatter
our $VERSION = '1.6';
our $VERSION = '2.0';

# 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 @@ -17,12 +17,12 @@ pgFormatter::CGI - Implementation of CGI-BIN script to format SQL queries.
=head1 VERSION
Version 1.6
Version 2.0
=cut

# Version of pgFormatter
our $VERSION = '1.6';
our $VERSION = '2.0';

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 @@ -17,12 +17,12 @@ pgFormatter::CLI - Implementation of command line program to format SQL queries.
=head1 VERSION
Version 1.6
Version 2.0
=cut

# Version of pgFormatter
our $VERSION = '1.6';
our $VERSION = '2.0';

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 @@ -37,7 +37,7 @@ local $SIG{ __WARN__ } = sub {
use FindBin;
use lib "$FindBin::Bin/lib";

our $VERSION = '1.6';
our $VERSION = '2.0';

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

0 comments on commit 6ec41f2

Please sign in to comment.