This is an automated email from the ASF dual-hosted git repository.
dehowef pushed a commit to branch PG12
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/PG12 by this push:
new 24bfa1c7 Fix PG12 DockerHub build warnings (#1616)
24bfa1c7 is described below
commit 24bfa1c765f5e1be8a4fc574794a2d38c1205e2b
Author: John Gemignani <[email protected]>
AuthorDate: Wed Feb 14 23:06:43 2024 -0800
Fix PG12 DockerHub build warnings (#1616)
---
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 f704b1b4..deed6f35 100644
--- a/src/backend/parser/cypher_expr.c
+++ b/src/backend/parser/cypher_expr.c
@@ -588,7 +588,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.