Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.txt | 2017-09-02 | 2.6 kB |
|
pgFormatter-2.1.tar.gz | 2017-09-02 | 56.2 kB | |
Totals: 2 Items | 58.8 kB | 0 |
September 02 2017 - v2.1 This minor release fixes several issues reported by users since four months. This release also adds some improvements in code formatting. - Add support to new psql meta-command from v10. - Remove new line before ORDER BY with string_agg and group_concat function call. Thanks to Huy Pham for the report. - Fix CREATE TYPE format. Thanks to Fabian Zeindl for the report. - Fix fix full outer join formatting. Thanks to Jakob Egger for the report. - Fix indentation in CTE. Thanks to Jakob Egger for the report. - Add two command line option to defined where comma must appears in a parameter list: -b | --comma-start: in a parameters list, start with a comma (see -e) -e | --comma-end : in a parameters list, end with a comma (default) The CGI interface adds a new checkbox to force comma at beginning. Default is lines end with a comma. Thanks to fnwiya for the feature request. - Fix use of uninitialized value in pattern match. Thanks to Gajus Kuizinas for the report. - Fix missing space after a function name especially in ALTER FUNCTION calls. - Add sample to regression test on CTE, CREATE TYPE and dynamic code formatting. - Prevent dynamic code formatting. By default pgFormatter takes all code between single quote as string constant and do not perform any formatting on this code. It is common to use a string as code separator to avoid doubling single quote in dynamic code generation, in this case pgFormatter can fail to auto detect the code separator. By default it will search for any string after the EXECUTE keyword starting with dollar sign. If it can not auto detect your code separator you can use the command line option -S or --separator to set the code separator that must be used. Thanks to Alvaro Herrera for the report. - Fix undetected case of BEGIN keyword when lowercase. - Add test case for GRANT and DISTINCT FROM formatting. - Remove newline between DISTINCT and FROM. Thanks to Sebastian Albert for the report. - Fix GRANT formatting. Thanks to Vesa Karjalainen for the report. - Make it possible to run pg_format via symlink. For example, if pgFormatter is in /opt/pgFormatter and there is a symlink like /usr/local/bin/pg_format -> /opt/pgFormatter/pg_format then previous version wouldn't work when called via symlink, as it would search for libs in /usr/local/bin/lib/, and not in /opt/pgFormatter/lib. - Move COALESCE from SQL keyword to SQL function to prevent new line after comma in the parameters.