Skip to content

Commit 59f11cd

Browse files
committed
Fix same_schema check so it considers left and right operands when comparing operators.
1 parent 362890e commit 59f11cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_postgres.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ package check_postgres;
10661066
},
10671067
operator => {
10681068
SQL => q{
1069-
SELECT o.*, o.oid, n.nspname||'.'||o.oprname AS name, quote_ident(o.oprname) AS safename,
1069+
SELECT o.*, o.oid, n.nspname||'.'||o.oprname||' ('||COALESCE(t2.typname,'NONE')||','||COALESCE(t3.typname,'NONE')||')' AS name, quote_ident(o.oprname) AS safename,
10701070
rolname AS owner, n.nspname AS schema,
10711071
t1.typname AS resultname,
10721072
t2.typname AS leftname, t3.typname AS rightname,

0 commit comments

Comments
 (0)