bitnine-oss / agensgraph

AgensGraph, a transactional graph database based on PostgreSQL
http://www.agensgraph.org
Other
1.34k stars 149 forks source link

fix: Handle `JsonbValue.val.string.val` properly #468

Closed protodef closed 5 years ago

protodef commented 5 years ago

It does not end with '\0' but ExecEvalCypherTypeCast() does not care this properly. For example, RETURN ('1' + '2')::text; returns a result like "12~\x7F@". And we can save 1 byte if a C-string is stored in it. This is applied to jsonb_add().