3125 Commits

Author SHA1 Message Date
Jack Christensen
9c5dfbdfb3 pgconn.CommandTag is now an opaque type
It now makes a copy instead of retaining driver memory. This is in
preparation to reuse the driver read buffer.
2022-02-12 10:26:26 -06:00
Jack Christensen
e6680127e3 Reenable TestRowsScanNilThenScanValue 2022-02-12 09:40:33 -06:00
Jack Christensen
60da2914f3 Re-enable test 2022-02-12 09:37:12 -06:00
Jack Christensen
a14f3f291f Re-enable domain type test 2022-02-12 09:35:52 -06:00
Jack Christensen
4b6d527b0b Merge branch 'master' into v5-dev 2022-02-12 09:22:37 -06:00
Jack Christensen
3650fc9f68 Remove comparison with alternatives from readme
lib/pq and go-pg are both in maintenance mode. No point in comparison.
2022-02-12 09:19:55 -06:00
Saimon Shaplygin
4ac1499060 ref: remove anchored code 2022-02-12 09:15:24 -06:00
Isabel Jimenez
71da600c3a exposing stdlib DB connector 2022-02-12 09:11:56 -06:00
Jack Christensen
f861d83a17 Fix range types not clearing unbounded or empty 2022-02-08 16:48:17 -06:00
Jack Christensen
0306ce3a19 Fix scanning negative ints into Int64Scanner 2022-02-08 14:13:06 -06:00
Jack Christensen
1334d45d71 Parse array header to empty slices instead of nils 2022-02-08 11:35:40 -06:00
Jack Christensen
bcc0af3f56 Fix scan empty array into multi-dimension slice 2022-02-08 11:12:05 -06:00
Jack Christensen
7193e48923 Restore multi-dimensional slices
Move ArrayCode to use pgtype wrapper pattern as well
2022-02-08 10:07:40 -06:00
Jack Christensen
318018504a Merge branch 'master' into v5-dev 2022-02-07 11:22:01 -06:00
Jack Christensen
e2769993cc Merge remote-tracking branch 'pgconn/master' into v5-dev 2022-02-07 11:17:27 -06:00
Jack Christensen
2b7de82ef4 Release v4.15.0 v4.15.0 2022-02-07 11:03:06 -06:00
Jack Christensen
67401de1c3 Upgrade to pgconn v1.11.0 2022-02-07 10:55:29 -06:00
Jack Christensen
3e5de44314 Release v1.11.0 2022-02-07 10:54:39 -06:00
Jack Christensen
6fea8eba5e Upgrade to pgtype v1.10.0 2022-02-07 10:52:30 -06:00
Jack Christensen
202542ead5 Release v1.10.0 2022-02-07 10:51:03 -06:00
Jack Christensen
c9eefd852a Upgrade to puddle v1.2.1 2022-02-07 10:48:30 -06:00
Jack Christensen
e8857f04a1 Make BatchResults.Close safe to be called multiple times
https://github.com/jackc/pgx/issues/1138
https://github.com/jackc/pgx/issues/938
2022-02-07 10:44:39 -06:00
Collin Forsyth
f4252a58be correctly Scan type aliases for floating point types 2022-02-05 20:23:39 -06:00
Jack Christensen
d02b2ed013 Add batch test for QueryRow without any rows
refs #1150
2022-02-05 20:12:35 -06:00
djsavvy
9eccdd6a81 Clarify that Values() and Scan() require Next() to have been called on the rows object 2022-02-05 20:06:01 -06:00
Jack Christensen
02372f1c3c Add DecodeValue to composites 2022-02-05 15:12:09 -06:00
Jack Christensen
3a94113118 Add composite to arbitrary struct encoding and decoding 2022-02-05 14:24:34 -06:00
Jack Christensen
727fc19cb7 Another error message improvement 2022-02-05 13:10:58 -06:00
Jack Christensen
28ea2cd190 Better error messages 2022-02-05 13:05:23 -06:00
Jack Christensen
6ebf54b62b Fix EnumCodec caching and add tests 2022-02-05 09:57:40 -06:00
Jack Christensen
288080c58c Add test documenting typed nil json encoding
Encoded into json null not SQL NULL.
2022-02-05 09:34:39 -06:00
Jack Christensen
0355d2ffea Add Float8range
PostgreSQL doesn't define float8range out of the box though it can
easily be created by the user. However, it is still convenient to treat
a numrange as a float8range.
2022-02-05 08:54:38 -06:00
Jack Christensen
a74ebc9e51 pgtype.Numeric implements Float64Valuer 2022-02-05 08:39:53 -06:00
Jack Christensen
a280f4db8a Float4 and Float8 implement Int64 Scanner and Valuer 2022-02-03 20:19:52 -06:00
Jack Christensen
ba4583cf4c Add range array types 2022-02-02 08:47:56 -06:00
Jack Christensen
cebe44ee85 Restore range support 2022-02-02 08:40:42 -06:00
Pinank Solanki
94e10b98b1 Fix typo in float8 2022-02-01 16:55:20 -06:00
Jack Christensen
11223497b3 Restore record support 2022-01-31 20:42:12 -06:00
Jack Christensen
ef7114a8ce Add DecodeValue and DecodeDatabaseSQLValue for ArrayCodec 2022-01-31 20:39:50 -06:00
Jack Christensen
558748ef9c ArrayCodec contains element DataType 2022-01-29 16:41:07 -06:00
Jack Christensen
b5bf9d7bb9 Move LoadDataType to pgx.Conn 2022-01-29 16:32:05 -06:00
Jack Christensen
f5c3eeb813 Initial rebuilt composite support 2022-01-29 15:43:18 -06:00
Jack Christensen
dc77e7c2da Add QueryRow warning to DriverBytes 2022-01-29 08:17:50 -06:00
Jack Christensen
47345e0d1e ArrayHeader.EncodeBinary doesn't need ci parameter 2022-01-25 20:21:28 -06:00
Jack Christensen
551d26ca41 Change ArrayHeader.ElementOID to uint32 2022-01-25 20:19:02 -06:00
Jack Christensen
f5806bc01c Add a fuzz test
Investigating https://github.com/jackc/pgx/issues/938.
2022-01-24 08:10:01 -06:00
Jack Christensen
0ddf9e3b4b Try wrapping scan target before sql.Scanner
This allows wrappers to directly avoid the slow sql.Scanner interface.
2022-01-22 18:40:46 -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
322bfedc60 Remove old SQL scanner integration 2022-01-22 16:20:37 -06:00
Jack Christensen
aedf7d63e5 Expose try wrap functions in ConnInfo 2022-01-22 16:19:32 -06:00