6 Commits

Author SHA1 Message Date
David Hudson
d678216f46 pgtype: Fix -0 for numeric types
Due to the special case of when the digits string was longer than 1 but
only contained the negative sign and a 0, it was incorrectly stripping
the 0 and attempting to parse "-" as a number.

The solution is to check an extra position along to make sure a trailing
0 is not immediately preceeded by a negetive sign.

Fixes #543
2019-06-07 15:15:46 +01:00
Wei Congrui
ce654ad1e1 Fix numeric EncodeBinary bug 2017-08-18 15:20:39 +08:00
Jack Christensen
6529b91111 Fix TestNumericNormalize 2017-05-20 08:38:27 -05:00
Jack Christensen
f418255c24 Finish extraction of pgtype test helpers 2017-04-14 12:38:33 -05:00
Jack Christensen
7b1f461ec3 Add simple protocol suuport with (Query|Exec)Ex 2017-04-10 08:58:51 -05:00
Jack Christensen
5ad2c4e2b9 Add pgtype.Numeric 2017-04-01 23:33:04 -05:00