Jack Christensen
82ca09e645
Numeric infinity only supported on PG 14+
...
Move to PG 14+ specific test
2022-06-25 13:33:09 -05:00
Jack Christensen
c0a4d1b9ce
Add a few tests
2022-06-20 20:43:56 -05:00
Jack Christensen
f14fb3d692
Replace interface{} with any
2022-04-09 09:12:55 -05:00
Jack Christensen
829babcea9
Better number to string handling
...
Avoid ambiguity of stringWrapper implementing Int64Scanner and
Float64Scanner.
2022-04-09 09:09:46 -05:00
Jack Christensen
8cf6721d66
Better int64 / numeric compat and text fixes
2022-04-02 16:55:05 -05:00
Jack Christensen
ee93440ac1
pgtype uses pgxtest
...
Added ValueRoundTripTest to pgxtest
Removed pgtype/testutil
pgtype tests now run with all (applicable) query modes. This gives
better coverage than before and revealed several bugs which are also
fixed in this commit.
2022-04-02 14:34:19 -05:00
Jack Christensen
3a6d9490e5
Only test numeric infinity on PG 14+
2022-03-26 11:38:31 -05:00
Jack Christensen
e04b35bfcb
Make pgtype test compat with CockroachDB when possible
2022-03-22 20:33:24 -05:00
Jack Christensen
84a3d91322
pgtype Float4 and Float8 fields include bit size
...
e.g. Instead of Float it is Float64. This matches the pattern set by the
database/sql types.
2022-03-05 09:20:03 -06:00
Jack Christensen
9c538cd4a9
Remove actualTarget argument
2022-02-21 09:30:01 -06:00
Jack Christensen
f3defbc150
Rename pgtype.None to pgtype.Finite
2022-02-21 09:25:30 -06:00
Jack Christensen
a74ebc9e51
pgtype.Numeric implements Float64Valuer
2022-02-05 08:39:53 -06:00
Jack Christensen
5ed95dcd1c
Expose wrap functions on ConnInfo
...
- Remove rarely used ScanPlan.Scan arguments
- Plus other refactorings and fixes that fell out of this change.
- Plus rows Scan now handles checking for changed type.
2022-01-22 17:50:19 -06:00
Jack Christensen
3a90c6c879
Removed TextEncoder and BinaryEncoder
...
Restructured / fixed a lot of tests along the way.
2022-01-22 12:07:35 -06:00
Jack Christensen
b9b5e35d0f
Convert numeric to Codec
2022-01-22 09:31:59 -06:00
Jack Christensen
72cc95e4dd
Bump module version to v5
2021-12-11 13:29:03 -06:00
Jack Christensen
7e13db4538
Finish import of pgtype repo
...
Fix some tests that broke by merging repos
Tweak readme wording
2021-12-04 13:45:57 -06:00
Jack Christensen
44214b7854
Import to pgx main repo in pgtype subdir
2021-12-04 13:07:54 -06:00