nck-2 / test-rep

0 stars 0 forks source link

Error json parsing on CALL PQ #1362

Open githubmanticore opened 1 year ago

githubmanticore commented 1 year ago

Get error when use valid json:

CALL PQ('pq',('{"id":"108056","text":"File:Rainbow, CA.jpg\nRainbow <ref name=\"GR1\"> "}'), 1 as docs_json, 1 as docs, 1 as query, 'id' as docs_id);   

If add escape all work fine:

CALL PQ('pq',('{"id":"108056","text":"File:Rainbow, CA.jpg\nRainbow <ref name=\"GR1\"> "}'), 1 as docs_json, 1 as docs, 1 as query, 'id' as docs_id);   

Very important:\ When we will fix this problem - we must save two syntax. Cause existing clients fix this problem in their code, and we can give release without backwards compatibility support.

githubmanticore commented 1 year ago

➤ Stan commented:

need to fix out JSON parser to provide error point and not only error flag - that way we could show that part of JSON document cause parser error