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

Commitf7fb29d

Browse files
committed
Shouldn't try to copy null datums with datumCopy.
1 parentb8ef396 commitf7fb29d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/optimizer/util/clauses.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.92 2001/12/10 22:54:12 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.93 2002/01/03 18:01:59 tgl Exp $
1212
*
1313
* HISTORY
1414
* AUTHORDATEMAJOR EVENT
@@ -1544,7 +1544,8 @@ simplify_op_or_func(Expr *expr, List *args)
15441544
&const_is_null,NULL);
15451545

15461546
/* Must copy result out of sub-context used by expression eval */
1547-
const_val=datumCopy(const_val,resultTypByVal,resultTypLen);
1547+
if (!const_is_null)
1548+
const_val=datumCopy(const_val,resultTypByVal,resultTypLen);
15481549

15491550
FreeExprContext(econtext);
15501551
pfree(newexpr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp