Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 32bb423db5 | |||
| c66dc414fc |
@@ -1,32 +0,0 @@
|
||||
From 6c388d02d2ac48fbcef742e417dd490308250595 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Darold <gilles@darold.net>
|
||||
Date: Fri, 18 Jul 2025 23:52:36 +0200
|
||||
Subject: [PATCH] Fix possible precedence problem between ! and string eq.
|
||||
Thanks to Adrien Nayrat for the report.
|
||||
|
||||
---
|
||||
pgbadger | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pgbadger b/pgbadger
|
||||
index 5ed62d1..11bd290 100755
|
||||
--- a/pgbadger
|
||||
+++ b/pgbadger
|
||||
@@ -20462,7 +20462,7 @@ sub highlight_code
|
||||
# lowercase/uppercase known functions or words followed by an open parenthesis
|
||||
# if the token is not a keyword, an open parenthesis or a comment
|
||||
if (($self->_is_function( $token, $last_token, $next_token ) && $next_token eq '(')
|
||||
- || (!$self->_is_keyword( $token, $next_token, $last_token ) && !$next_token eq '('
|
||||
+ || (!$self->_is_keyword( $token, $next_token, $last_token ) && $next_token ne '('
|
||||
&& $token ne '(' && !$self->_is_comment( $token )) ) {
|
||||
if ($self->{ 'uc_functions' } == 1) {
|
||||
$token = '<span class="kw2_l">' . $token . '</span>';
|
||||
@@ -23062,7 +23062,7 @@ sub _add_token
|
||||
# if the token is not a keyword, an open parenthesis or a comment
|
||||
my $fct = $self->_is_function( $token, $last_token, $next_token ) || '';
|
||||
if (($fct and $next_token eq '(' and defined $last_token and uc($last_token) ne 'CREATE')
|
||||
- or (!$self->_is_keyword( $token, $next_token, $last_token ) and !$next_token eq '('
|
||||
+ or (!$self->_is_keyword( $token, $next_token, $last_token ) and $next_token ne '('
|
||||
and $token ne '(' and !$self->_is_comment( $token )) )
|
||||
{
|
||||
$token =~ s/$fct/\L$fct\E/i if ( $self->{ 'uc_functions' } == 1 );
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9658ff222ed7b387d3cb76c3e3d90d1862b885c13b26aa9ff652e133f5d018f1
|
||||
size 4367754
|
||||
3
pgbadger-13.2.tar.gz
Normal file
3
pgbadger-13.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:94074714bb4928c69c9e977da02d50e197a9d428fa3f235f25c103ef3c7d9a9d
|
||||
size 4370560
|
||||
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 29 18:33:24 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
|
||||
|
||||
- update to 13.2
|
||||
This is a maintenance release of pgBadger that update SQL code
|
||||
formatting, fixes issues and applied patches reported by users
|
||||
since last release.
|
||||
|
||||
- Fix normalization that was not handling properly balanced
|
||||
single-quoted strings along with escaped quotes inside. Thanks
|
||||
to Bertrand Bourgier for the report.
|
||||
- Fix placeholder requirements in the doc.
|
||||
- Fix case where no error sample log entries was reported. Thanks
|
||||
to john doe for the report.
|
||||
- Fix possible precedence problem between ! and %s. Thanks to
|
||||
Luca Santarelli and Philipp Trulson for the report. Update
|
||||
pgFormatter code to v5.9 Add github CI action for testing on
|
||||
commit push.
|
||||
- Fix parsing of %r placeholder in log_line_prefix. Thanks to
|
||||
nike7o0 for the report.
|
||||
- Fix uninitialized value warning. Thanks to Ales Zeleny for the
|
||||
report.
|
||||
- Enhance docs of ssh-options for postgreSQL log parsing with
|
||||
examples. Thanks to Ulrich Konrad for the patch.
|
||||
- Add command --ssh-sudo to run commands over ssh as sudo. Thanks
|
||||
to Andrew Jackson for the patch.
|
||||
- Fix possible precedence problem between ! and string eq. Thanks
|
||||
to Adrien Nayrat for the report.
|
||||
- Fix parsing of pgbouncer stats. Thanks to mrgtt for the report.
|
||||
- drop pgbadger-13.1-precedence.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 27 16:34:43 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pgbadger
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2013-2015 Lars Vogdt
|
||||
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||
#
|
||||
@@ -31,7 +31,7 @@
|
||||
%endif
|
||||
|
||||
Name: pgbadger
|
||||
Version: 13.1
|
||||
Version: 13.2
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: A fast PostgreSQL log analyzer
|
||||
@@ -42,7 +42,6 @@ Source1: %{name}-cron
|
||||
Source2: %{name}.timer
|
||||
Source3: %{name}.service
|
||||
Source4: README.SUSE
|
||||
Patch0: pgbadger-13.1-precedence.patch
|
||||
BuildRequires: cron
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(Benchmark)
|
||||
|
||||
Reference in New Issue
Block a user