summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-03-01 20:53:10 +0000
committerGreg Sabino Mullane2010-03-01 20:53:10 +0000
commit292851f3d48604e660393084202bdcec08096e98 (patch)
treeb0d954c15ef0f77463fa56fc6c8660b9d5bb94e6 /check_postgres.pl
parent16bb14aeace367141eff2df20bda25f8aaee2029 (diff)
Fix typo in slony_status SQL (hooray for unit tests!)
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 0642d16d2..d0635fb6e 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -6501,7 +6501,7 @@ sub check_slony_status {
my $SQL =
qq{SELECT ROUND(EXTRACT(epoch FROM st_lag_time)),
st_origin, st_received,
-COALESCE(n1.no_comment, ''), COALESCE(n1.no_comment, '')
+COALESCE(n1.no_comment, ''), COALESCE(n2.no_comment, '')
FROM $schema.sl_status
JOIN $schema.sl_node n1 ON (n1.no_id=st_origin)
JOIN $schema.sl_node n2 ON (n2.no_id=st_received)};