This is an automated email from the ASF dual-hosted git repository.
dehowef pushed a commit to branch PG11
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/PG11 by this push:
new 005a6935 Fix PG11 DockerHub build warnings (#1617)
005a6935 is described below
commit 005a69358709c04a454cbbf5e7d8ecbdcf560a97
Author: John Gemignani <[email protected]>
AuthorDate: Wed Feb 14 23:07:15 2024 -0800
Fix PG11 DockerHub build warnings (#1617)
---
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 58ba88f4..f20b4422 100644
--- a/src/backend/parser/cypher_expr.c
+++ b/src/backend/parser/cypher_expr.c
@@ -587,7 +587,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.