Oleksandr Redko
17cd36818c
Update comments in generated code to align with Go standards
2024-12-21 20:21:32 +02: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
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
d723a4ab6f
pgtype Int2, Int4, and Int8 fields include bit size
...
e.g. Instead of Int it is Int64. This matches the pattern set by the
database/sql types.
2022-03-05 09:17:31 -06:00
Jack Christensen
0306ce3a19
Fix scanning negative ints into Int64Scanner
2022-02-08 14:13:06 -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
0c0e28a70a
Convert int4 and int8 to new system
...
Note: purposely disabled some tests and composite support that needs to
be restored later in v5 development.
2022-01-01 17:26:39 -06:00
Jack Christensen
d2cf33ed40
Add UnmarshalJSON to generated ints
2022-01-01 11:25:26 -06:00
Jack Christensen
0403c34ae3
Prepare for generating tests
2022-01-01 11:22:14 -06:00