From ac24c6d612578158ac0aae6f1ef74310596dcdc9 Mon Sep 17 00:00:00 2001 From: Muhammad Taha Naveed Date: Wed, 8 Nov 2023 00:17:43 +0500 Subject: [PATCH] Fix ambiguous conditions (#1377) - These conditions were ambiguous for compiler as well as for other devs. --- src/backend/utils/adt/agtype_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/adt/agtype_ops.c b/src/backend/utils/adt/agtype_ops.c index b1e8f666f..ea59568c7 100644 --- a/src/backend/utils/adt/agtype_ops.c +++ b/src/backend/utils/adt/agtype_ops.c @@ -1031,7 +1031,7 @@ Datum agtype_exists_agtype(PG_FUNCTION_ARGS) aval); } else if (AGT_ROOT_IS_ARRAY(agt) && - !aval->type == AGTV_NULL) + aval->type != AGTV_NULL) { v = find_agtype_value_from_container(&agt->root, AGT_FARRAY, @@ -1073,7 +1073,7 @@ Datum agtype_exists_any_agtype(PG_FUNCTION_ARGS) PG_RETURN_BOOL(true); } else if (AGT_ROOT_IS_ARRAY(agt) && - !(&elem)->type == AGTV_NULL && + (&elem)->type != AGTV_NULL && find_agtype_value_from_container(&agt->root, AGT_FARRAY, &elem))