Thanks to visit codestin.com Credit goes to github.com
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 639a86e commit 0ffbe90Copy full SHA for 0ffbe90
src/backend/nodes/equalfuncs.c
@@ -2409,8 +2409,14 @@ _equalParamRef(const ParamRef *a, const ParamRef *b)
2409
static bool
2410
_equalA_Const(const A_Const *a, const A_Const *b)
2411
{
2412
- if (!equal(&a->val, &b->val)) /* hack for in-line val field */
+ /*
2413
+ * Hack for in-line val field. Also val is not valid is isnull is
2414
+ * true.
2415
+ */
2416
+ if (!a->isnull && !b->isnull &&
2417
+ !equal(&a->val, &b->val))
2418
return false;
2419
+ COMPARE_SCALAR_FIELD(isnull);
2420
COMPARE_LOCATION_FIELD(location);
2421
2422
return true;
0 commit comments