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

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


The following commit(s) were added to refs/heads/PG14 by this push:
     new 04d285de Fix PG14 DockerHub build warnings (#1614)
04d285de is described below

commit 04d285dee71dd303e8ebdcc7afca393da6448ccf
Author: John Gemignani <[email protected]>
AuthorDate: Wed Feb 14 15:30:11 2024 -0800

    Fix PG14 DockerHub build warnings (#1614)
    
    Fixed PG14 DockerHub build warnings by converting an Assert to
    an error message.
    
    No regression tests needed adjusting.
---
 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 56ce5d82..b875e1e2 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