jrgemignani commented on issue #2290:
URL: https://github.com/apache/age/issues/2290#issuecomment-3740252698

   @zihaozeng0021 Actually, your 3rd control query has the incorrect output and 
PR #2294 resolves it causing the latter 2 queries to provide the correct 
results.
   
   **3rd query correct result**
   ```
   psql-17.4-5432-pgsql=# SELECT count(*)
   psql-17.4-5432-pgsql-# FROM cypher('test', $$
   psql-17.4-5432-pgsql$#   MATCH (n:N)
   psql-17.4-5432-pgsql$#   WHERE 1 IN []
   psql-17.4-5432-pgsql$#   RETURN n
   psql-17.4-5432-pgsql$# $$) AS (n agtype);
    count
   -------
        0
   (1 row)
   ```
   **buggy query correct result**
   ```
   psql-17.4-5432-pgsql=# SELECT *
   psql-17.4-5432-pgsql-# FROM cypher('test', $$
   psql-17.4-5432-pgsql$#   WITH 1 AS x
   psql-17.4-5432-pgsql$#   WHERE 1 IN []
   psql-17.4-5432-pgsql$#   RETURN x AS v
   psql-17.4-5432-pgsql$# $$) AS (v agtype);
    v
   ---
   (0 rows)
   
   psql-17.4-5432-pgsql=#
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to