summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorglynastill2015-09-23 13:26:07 +0000
committerglyn2016-06-07 11:13:41 +0000
commit59f11cd915c39f57c1ac73e8e966a0afdb3c34a5 (patch)
tree026a769746549fad4fe78df659229dd32501ff85 /check_postgres.pl
parent362890ebe8550f63fa48511f84997d4ff6dc94b3 (diff)
Fix same_schema check so it considers left and right operands when comparing operators.
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 f3767348f..d79ef39b5 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -1066,7 +1066,7 @@ WHERE c.relkind = 'i'},
},
operator => {
SQL => q{
-SELECT o.*, o.oid, n.nspname||'.'||o.oprname AS name, quote_ident(o.oprname) AS safename,
+SELECT o.*, o.oid, n.nspname||'.'||o.oprname||' ('||COALESCE(t2.typname,'NONE')||','||COALESCE(t3.typname,'NONE')||')' AS name, quote_ident(o.oprname) AS safename,
rolname AS owner, n.nspname AS schema,
t1.typname AS resultname,
t2.typname AS leftname, t3.typname AS rightname,