2
0
Commit Graph

3 Commits

Author SHA1 Message Date
Martin Ashby 40ecac487c Remove unimplemented JSON marshalling for FunctionCall type. 2021-11-06 16:39:43 -05:00
Martin Ashby 3d9a54f092 Fix unit test, it should return after any error is returned from Decode
function whether expected or not, rather than continue and try to
compare invalid decoded results.

Extend the unit test slightly to check the header.

Remove go-test/deep dependency in favour of standard library reflect
package.
2021-11-06 16:39:43 -05:00
Martin Ashby 9275da562f Added FunctionCall support
Added support for FunctionCall message as per
https://www.postgresql.org/docs/11/protocol-message-formats.html

Adds unit test for Encode / Decode cycle and invalid message format
errors.

Fixes https://github.com/jackc/pgproto3/issues/23
2021-11-06 16:39:43 -05:00