Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8e9935

Browse files
committed
Fix failure to propagate collation in negate_clause().
Turns out it was this, and not so much plpgsql, that was at fault in StefanHuehner's collation-error-in-a-trigger bug report of a couple weeks ago.
1 parent9b19c12 commitc8e9935

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/optimizer/prep/prepqual.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ negate_clause(Node *node)
104104
newopexpr->opfuncid=InvalidOid;
105105
newopexpr->opresulttype=opexpr->opresulttype;
106106
newopexpr->opretset=opexpr->opretset;
107+
newopexpr->opcollid=opexpr->opcollid;
108+
newopexpr->inputcollid=opexpr->inputcollid;
107109
newopexpr->args=opexpr->args;
108110
newopexpr->location=opexpr->location;
109111
return (Node*)newopexpr;
@@ -126,6 +128,7 @@ negate_clause(Node *node)
126128
newopexpr->opno=negator;
127129
newopexpr->opfuncid=InvalidOid;
128130
newopexpr->useOr= !saopexpr->useOr;
131+
newopexpr->inputcollid=saopexpr->inputcollid;
129132
newopexpr->args=saopexpr->args;
130133
newopexpr->location=saopexpr->location;
131134
return (Node*)newopexpr;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp