You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2022/08/01 04:20:49 UTC
[GitHub] [age] jrgemignani commented on issue #241: Output serialization for strings seems to be incorrect at times
jrgemignani commented on issue #241:
URL: https://github.com/apache/age/issues/241#issuecomment-1200681907
Interesting. There appears to be a positional component to this bug -
```
psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 42, label: "label_name", properties: {} }::vertex as v return { z: "asdf", v: v } $$) AS (c ag_catalog.agtype);
c
-----------------------------------------------------------------------------
{"v": {"id": 42, "label": "label_name", "properties": {}}::vertex, "z": ""}
(1 row)
psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 42, label: "label_name", properties: {} }::vertex as z return { v: "asdf", z: z } $$) AS (c ag_catalog.agtype);
c
---------------------------------------------------------------------------------
{"v": "asdf", "z": {"id": 42, "label": "label_name", "properties": {}}::vertex}
(1 row)
```
```
psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 42, label: "label_name", properties: {} }::vertex as v return { a: "ASDF", z: "asdf", v: v } $$) AS (c ag_catalog.agtype);
c
----------------------------------------------------------------------------------------------
{"a": "ASDF", "v": {"id": 42, "label": "label_name", "properties": {}}::vertex, "z": " asd"}
(1 row)
psql-11.5-5432-pgsql=# SELECT * FROM ag_catalog.cypher('g', $$ with { id: 42, label: "label_name", properties: {} }::vertex as z return { a: "ASDF", v: "asdf", z: z } $$) AS (c ag_catalog.agtype);
c
----------------------------------------------------------------------------------------------
{"a": "ASDF", "v": "asdf", "z": {"id": 42, "label": "label_name", "properties": {}}::vertex}
(1 row)
```
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org