You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-06-18 23:57:33 +02:00
Add separate functions to encode/decode each JSON type.
In most cases the JSON type is known so this is more efficient than converting to Variant first, both in terms of memory and time. Also rename some of the existing functions for consistency.
This commit is contained in:
@ -285,7 +285,7 @@ testRun(void)
|
||||
// Various bogus greetings
|
||||
TEST_ERROR(
|
||||
protocolClientNew(strNew("test client"), strNew("test"), read, write), JsonFormatError,
|
||||
"invalid type at 'bogus greeting'");
|
||||
"expected '{' at 'bogus greeting'");
|
||||
TEST_ERROR(
|
||||
protocolClientNew(strNew("test client"), strNew("test"), read, write), ProtocolError,
|
||||
"greeting key 'name' must be string type");
|
||||
|
Reference in New Issue
Block a user