Jack Christensen
0f77a2d028
Merge pull request #2293 from divyam234/master
...
feat: add support for direct sslnegotiation
2025-03-31 08:13:19 -05:00
divyam234
ddd966f09f
update
2025-03-31 15:06:55 +02:00
divyam234
924834b5b4
add pgmock tests
2025-03-31 15:02:07 +02:00
divyam234
9b15554c51
respect sslmode set by user
2025-03-30 16:35:43 +02:00
divyam234
037e4cf9a2
feat: add support for direct sslnegotiation
2025-03-30 16:21:52 +02:00
Jack Christensen
04bcc0219d
Add v5.7.4 to changelog
2025-03-24 20:04:45 -05:00
Jack Christensen
0e0a7d8344
Merge pull request #2288 from felix-roehrich/fr/fix-plan-scan
...
Revert change in `if` from #2236 .
2025-03-24 19:46:22 -05:00
Felix Röhrich
63422c7d6c
revert change in if
2025-03-24 15:01:50 +01:00
Jack Christensen
5c1fbf4806
Update changelog for v5.7.3
2025-03-21 21:02:03 -05:00
Jack Christensen
05fe5f8b05
Explain seemingly redundant rows.Close() in CollectOneRow
...
fixes https://github.com/jackc/pgx/issues/2282
2025-03-21 20:33:32 -05:00
Jack Christensen
70c9a147a2
Merge pull request #2279 from djahandarie/min-idle-conns
...
Add MinIdleConns
2025-03-21 20:25:19 -05:00
Darius Jahandarie
6603ddfbe4
add MinIdleConns
2025-03-15 19:14:26 +09:00
Jack Christensen
70f7cad222
Add link to https://github.com/Arlandaren/pgxWrappy
2025-02-28 20:59:28 -06:00
Jack Christensen
6bf1b0b1b9
Add database/sql to overview of scanning
2025-02-22 08:42:26 -06:00
Jack Christensen
14bda65a0c
Correct pgtype docs
2025-02-22 08:34:31 -06:00
Jack Christensen
9e3c4fb40f
Merge pull request #2257 from felix-roehrich/fr/change-connect-logic
...
Change connection logic to be more forgiving
2025-02-19 07:36:35 -06:00
Felix Röhrich
05e72a5ab1
make connection logic more forgiving
2025-02-17 21:24:38 +01:00
Jack Christensen
47d631e34b
Added missed change to v5.7.2 changelog
2025-02-08 10:21:39 -06:00
Jack Christensen
58b05f567c
Add https://github.com/nikolayk812/pgx-outbox to README.md
...
fixes https://github.com/jackc/pgx/issues/2239
2025-01-25 08:59:52 -06:00
Jack Christensen
dcb7193669
Merge pull request #2236 from felix-roehrich/fr/fix-plan-scan
...
Alternative implementation for JSONCodec.PlanScan
2025-01-25 08:56:38 -06:00
Jack Christensen
1abf7d9050
Merge pull request #2240 from bonnefoa/fix-watch-panic
...
Unwatch and close connection on a batch write error
2025-01-25 08:38:33 -06:00
Jack Christensen
b5efc90a32
Merge pull request #2028 from jackc/enable-composite-tests-on-cockroachdb
...
Enable composite tests on cockroachdb
2025-01-25 08:22:32 -06:00
Jack Christensen
a26c93551f
Skip TestCompositeCodecTranscodeStructWrapperForTable
2025-01-25 08:15:40 -06:00
Jack Christensen
2100e1da46
Use latest version of CockroachDB for CI
2025-01-25 08:04:42 -06:00
Jack Christensen
2d21a2b80d
Merge pull request #2228 from jackc/fix-xml-decode-value
...
XMLCodec: fix DecodeValue to return a []byte
2025-01-25 07:24:30 -06:00
Jack Christensen
5f33ee5f07
Call out []byte in QueryExecModeSimpleProtocol documentation
...
https://github.com/jackc/pgx/issues/2231
2025-01-25 07:15:02 -06:00
Anthonin Bonnefoy
228cfffc20
Unwatch and close connection on a batch write error
...
Previously, a conn.Write would simply unlock pgconn, leaving the
connection as Idle and reusable while the multiResultReader would be
closed. From this state, calling multiResultReader.Close won't try to
receiveMessage and thus won't unwatch and close the connection since it
is already closed. This leaves the connection "open" and the next time
it's used, a "Watch already in progress" panic could be triggered.
This patch fixes the issue by unwatching and closing the connection on a
batch write error. The same was done on Sync.Encode error even if the
path is unreachable as Sync.Error never returns an error.
2025-01-24 08:49:07 +01:00
Felix Röhrich
a5353af354
rework JSONCodec.PlanScan
2025-01-22 22:35:35 +01:00
Jack Christensen
0bc29e3000
Merge pull request #2225 from logicbomb/improve-error-message
...
Include the field name in error messages when scanning structs
2025-01-18 10:41:13 -06:00
Jack Christensen
9cce05944a
Merge pull request #2216 from pconstantinou/master
...
Timestamp incorrectly adds 'Z' when serializing from JSON to indicate GMT, fixes bug #2215
2025-01-18 10:17:43 -06:00
Jason Turim
9c0ad690a9
Include the field name in error messages when scanning structs
2025-01-11 14:31:24 -05:00
Jack Christensen
03f08abda3
Fix in Unmarshal function rather than DecodeValue
...
This preserves backwards compatibility in the unlikely event someone is
using an alternative XML unmarshaler that does support unmarshalling
into *any.
2025-01-11 11:26:46 -06:00
Jack Christensen
2c1b1c389a
Merge pull request #2200 from zenkovev/flush_request_in_pipeline
...
add flush request in pipeline
2025-01-11 11:15:36 -06:00
Jack Christensen
329cb45913
XMLCodec: fix DecodeValue to return a []byte
...
Previously, DecodeValue would always return nil with the default
Unmarshal function.
fixes https://github.com/jackc/pgx/issues/2227
2025-01-11 10:55:48 -06:00
zenkovev
c96a55f8c0
private const for pipelineRequestType
2025-01-11 19:54:18 +03:00
Jack Christensen
e87760682f
Update oldest supported Go version to 1.22
2025-01-11 07:49:50 -06:00
Jack Christensen
f681632c68
Drop PG 12 support and add PG 17 to CI
2025-01-11 07:49:26 -06:00
Phil Constantinou
3c640a44b6
Making the tests a little cleaner and clear
2025-01-06 09:24:55 -08:00
zenkovev
de3f868c1d
pipeline queue for client requests
2025-01-06 13:54:48 +03:00
Phil Constantinou
5424d3c873
Return error and make sure they are unit tested
2025-01-05 19:45:45 -08:00
Phil Constantinou
42d3d00734
Parse as a UTC time
2025-01-05 19:19:17 -08:00
Phil Constantinou
cdc672cf3f
Make JSON output confirm to ISO8601 timestamp without a timezone
2025-01-05 13:05:51 -08:00
Phil Constantinou
52e2858629
Added unit test and fixed typo
2025-01-02 13:36:33 -08:00
Phil Constantinou
e352784fed
Add Z only if needed.
2025-01-02 12:50:29 -08:00
Jack Christensen
c2175fe46e
Merge pull request #2213 from moukoublen/fix_2204
...
Fix #2204
2024-12-30 20:35:41 -06:00
Jack Christensen
659823f8f3
Add link to github.com/amirsalarsafaei/sqlc-pgx-monitoring
...
fixes https://github.com/jackc/pgx/issues/2212
2024-12-30 20:27:10 -06:00
Jack Christensen
ca04098fab
Merge pull request #2136 from ninedraft/optimize-sanitize
...
Reduce SQL sanitizer allocations
2024-12-30 20:24:13 -06:00
Jack Christensen
4ff0a454e0
Merge pull request #2211 from EinoPlasma/master
...
Fixes for Method Comment and Typo in Test Function Name
2024-12-30 20:12:22 -06:00
Jack Christensen
00b86ca3db
Merge pull request #2208 from vamshiaruru/feat/expose_empty_acquire_wait_time_from_puddle
...
Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Stats
2024-12-30 20:03:51 -06:00
Kostas Stamatakis
61a0227241
simplify test
2024-12-30 23:15:46 +02:00