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 32c0a095 Fix DockerHub warning messages for PG12_latest (#1387)
32c0a095 is described below

commit 32c0a0955f68ccdb856cf113e9046b10ba175a07
Author: John Gemignani <[email protected]>
AuthorDate: Wed Nov 8 16:35:30 2023 -0800

    Fix DockerHub warning messages for PG12_latest (#1387)
    
    Fixed DockerHub warning message for the build PG12_latest. This
    was due to an Assert statement that used a variable that was not
    used for anything else. I changed it to an if with error log
    output instead.
---
 src/backend/utils/adt/agtype_gin.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/utils/adt/agtype_gin.c 
b/src/backend/utils/adt/agtype_gin.c
index d2a4c75a..f23817db 100644
--- a/src/backend/utils/adt/agtype_gin.c
+++ b/src/backend/utils/adt/agtype_gin.c
@@ -243,7 +243,10 @@ Datum gin_extract_agtype_query(PG_FUNCTION_ARGS)
 
         /* it should be WAGT_BEGIN_ARRAY */
         itok = agtype_iterator_next(&it, &elem, true);
-        Assert(itok == WAGT_BEGIN_ARRAY);
+        if (itok != WAGT_BEGIN_ARRAY)
+        {
+            elog(ERROR, "unexpected iterator token: %d", itok);
+        }
 
         while (WAGT_END_ARRAY != agtype_iterator_next(&it, &elem, true))
         {

Reply via email to