We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e51872 commit 8064a49Copy full SHA for 8064a49
src/backend/optimizer/util/clauses.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.65 2000/04/12 17:15:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/util/clauses.c,v 1.66 2000/04/16 01:55:45 tgl Exp $
12
13
* HISTORY
14
* AUTHOR DATE MAJOR EVENT
@@ -790,7 +790,8 @@ get_relattval(Node *clause,
790
791
other = (*flag == 0) ? left : right;
792
793
- if (IsA(other, Const))
+ if (IsA(other, Const) &&
794
+ !((Const *) other)->constisnull)
795
{
796
*constval = ((Const *) other)->constvalue;
797
*flag |= SEL_CONSTANT;
0 commit comments