This is an automated email from the ASF dual-hosted git repository.

dehowef pushed a commit to branch PG13
in repository https://gitbox.apache.org/repos/asf/age.git


The following commit(s) were added to refs/heads/PG13 by this push:
     new 3f02b09e Fix PG13 DockerHub build warnings (#1615)
3f02b09e is described below

commit 3f02b09e616da0a4f9ad0792e380fb4052f5008d
Author: John Gemignani <[email protected]>
AuthorDate: Wed Feb 14 23:04:43 2024 -0800

    Fix PG13 DockerHub build warnings (#1615)
---
 src/backend/parser/cypher_expr.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/backend/parser/cypher_expr.c b/src/backend/parser/cypher_expr.c
index 24f452c6..490386f4 100644
--- a/src/backend/parser/cypher_expr.c
+++ b/src/backend/parser/cypher_expr.c
@@ -578,7 +578,13 @@ static Node *transform_AEXPR_IN(cypher_parsestate 
*cpstate, A_Expr *a)
 
         scalar_type = AGTYPEOID;
 
-        Assert (verify_common_type(scalar_type, allexprs));
+        if (verify_common_type(scalar_type, allexprs) != true)
+        {
+            ereport(ERROR,
+                    (errcode(ERRCODE_CANNOT_COERCE),
+                     errmsg_internal("not a common type")));
+        }
+
         /*
          * coerce all the right-hand non-Var inputs to the common type
          * and build an ArrayExpr for them.

Reply via email to