Files
neon/proxy/src
Stas Kelvich c82d19d8d6 Fix NULLs handling in proxy json endpoint
There were few problems with null handling:

* query_raw_txt() accepted vector of string so it always (erroneously)
treated "null" as a string instead of null. Change rust pg client
to accept the vector of Option<String> instead of just Strings. Adopt
coding here to pass nulls as None.

* pg_text_to_json() had a check that always interpreted "NULL" string
as null. That is wrong and nulls were already handled by match None.
This bug appeared as a bad attempt to parse arrays containing NULL
elements. Fix coding by checking presence of quotes while parsing an
array (no quotes -> null, quoted -> "null" string).

Array parser fix also slightly changes behavior by always cleaning
current entry when pushing to the resulting vector. This seems to be
an omission by previous coding, however looks like it was harmless
as entry was not cleared only at the end of the nested or to-level
array.
2023-06-08 16:00:18 +03:00
..
2023-05-24 09:11:23 +04:00
2023-06-02 21:03:12 +03:00
2023-05-15 23:45:04 +02:00
2023-05-15 23:45:04 +02:00
2023-05-23 20:01:40 +03:00
2023-06-02 21:03:12 +03:00
2023-05-23 20:01:40 +03:00
2023-04-28 17:15:43 +03:00
2023-02-17 15:32:14 +03:00
2023-05-24 09:11:23 +04:00
2022-07-04 23:46:37 +03:00