2018 Commits

Author SHA1 Message Date
Jack Christensen
b02c3d473e Document planned end-of-life 2025-01-25 10:06:56 -06:00
Jack Christensen
8f05c4741a Update changelog v4.18.3 2024-03-09 12:15:53 -06:00
Jack Christensen
69fcb46333 Use spaces instead of parentheses for SQL sanitization.
This still solves the problem of negative numbers creating a line
comment, but this avoids breaking edge cases such as `set foo to $1`
where the substition is taking place in a location where an arbitrary
expression is not allowed.
2024-03-09 12:14:44 -06:00
Jack Christensen
14690df4c5 Update changelog v4.18.2 2024-03-04 08:59:37 -06:00
Jack Christensen
779548e1f7 Update required Go version to 1.17 2024-03-04 08:53:04 -06:00
Jack Christensen
80e96622d6 Update github.com/jackc/pgconn to v1.14.3 2024-03-04 08:51:33 -06:00
Jack Christensen
0bf9ac391c Fix erroneous test case
The sanitizer does not rewrite the query portions of the query only the
parameters.
2024-03-04 08:49:13 -06:00
Jack Christensen
f94eb0e2f9 Always wrap arguments in parentheses in the SQL sanitizer 2024-03-04 08:47:10 -06:00
Jack Christensen
826a89229b Fix SQL injection via line comment creation in simple protocol 2024-03-04 08:47:10 -06:00
Jack Christensen
7d882f9aa7 Fix *dbTx.Exec not checking if it is already closed
https://github.com/jackc/pgx/issues/1908
2024-02-23 18:02:28 -06:00
Jack Christensen
1d07b8b939 go mod tidy 2024-02-17 10:21:42 -06:00
Jack Christensen
13468eb321 Release v4.18.1 v4.18.1 2023-02-27 19:58:50 -06:00
Tomáš Procházka
7fed69b954 simplify duplicate pgx registration guard
The binary search is overkill here.
Readability first.
2023-02-13 21:08:48 -06:00
Jack Christensen
1e68b39967 Update CHANGELOG.md for v4.18.0 2023-02-11 08:48:06 -06:00
Jack Christensen
dfaa30d68c Release v4.18.0 v4.18.0 2023-02-11 08:44:18 -06:00
Vitalii Solodilov
b14a5e65ad Register pgx driver using major version
Fixed: #1480
2023-02-10 19:18:35 -06:00
David Harju
d15cc95a8a Add fix for using a context with a value in BeforeConnect 2023-01-30 21:28:35 -06:00
Jack Christensen
3edc1b5bb7 Fix query sanitizer
...when query text has contains Unicode replacement character.
uft8.RuneError actually is a valid character.
2022-11-14 18:30:42 -06:00
Jack Christensen
f2b3210b75 Backport better Conn.Query docs
https://github.com/jackc/pgx/issues/1358
2022-10-29 10:11:36 -05:00
Jack Christensen
eb3f696664 Note that v5 is released 2022-09-17 10:38:15 -05:00
Jack Christensen
d42b399be3 Update changelog v4.17.2 2022-09-03 13:42:36 -05:00
Tom Möller
dfce986bb5 Fix panic when logging batch error 2022-09-03 09:02:23 -05:00
Jack Christensen
f5cdf0d383 Update changelog v4.17.1 2022-08-27 18:18:41 -05:00
Jack Christensen
72fe594942 Upgrade to puddle v1.3.0 2022-08-27 18:18:34 -05:00
Jack Christensen
bce26b85d1 Fix atomic alignment on 32-bit platforms
refs #1288
2022-08-27 09:23:17 -05:00
Jack Christensen
1d748d9bbf Failsafe timeout for background pool connections
Do not override existing connect timeout.
2022-08-13 09:50:37 -05:00
Jack Christensen
6871a0c4a6 Add v5 testing note to readme 2022-08-06 07:10:37 -05:00
Jack Christensen
5768a0c0bd Update changelog v4.17.0 2022-08-06 06:24:41 -05:00
Jack Christensen
7ce634d62b Ensure there is a timeout for background pool connections 2022-08-06 06:22:17 -05:00
Jack Christensen
f3e04b28cc Go 1.19 go fmt 2022-08-06 06:20:50 -05:00
Jack Christensen
7ad36f386d Upgrade dependencies 2022-08-06 06:11:07 -05:00
Peter Feichtinger
3cb99532f5 pgxpool: Make BeginTx success case clearer 2022-08-04 20:22:57 -05:00
James Hartig
91c9e841e1 Ignore cancellation in puddle constructor
Fixes #1259
2022-07-30 07:54:16 -05:00
Jack Christensen
88079de700
Update issue templates 2022-07-30 07:46:10 -05:00
Jack Christensen
cb5ddcd6b6
Update issue templates 2022-07-23 10:43:26 -05:00
Gabor Szabad
396195466c Add logger func wrapper 2022-06-23 20:15:20 -05:00
James Hartig
a814153aeb pgxpool: health check should avoid going below minConns 2022-06-07 18:38:03 -05:00
Jack Christensen
37c3f157bc Add Hijack from v5 2022-06-02 20:04:08 -05:00
Jack Christensen
dc0ad04ff5 Fix batch logging tests 2022-05-12 19:10:02 -05:00
Stepan Rabotkin
4099b447b9 feat: add batch logging 2022-05-12 19:05:08 -05:00
Stepan Rabotkin
bfb19cd4f6 feat: add time duration to error query and copy 2022-05-12 19:05:08 -05:00
Jack Christensen
8b9b4055f3 Release v4.16.1 v4.16.1 2022-05-07 07:14:53 -05:00
Jack Christensen
644bd73dcc Upgrade to pgconn v1.12.1 2022-05-07 07:13:23 -05:00
Jack Christensen
7ceeea6fe6 Fix explicitly prepared statements with describe statement cache mode
fixes https://github.com/jackc/pgx/issues/1196
2022-04-28 07:58:24 -05:00
Jack Christensen
c6335a30d0 Add link to github.com/vgarvardt/pgx-google-uuid 2022-04-23 10:25:08 -05:00
Jack Christensen
8c1815e02e Release v4.16.0 v4.16.0 2022-04-21 20:15:18 -05:00
Jack Christensen
c74f3f058f Add link to https://github.com/otan/gopgkrb5 2022-04-21 20:08:28 -05:00
Jack Christensen
e012ea0bed Upgrade pgconn, pgtype, and pgproto3 2022-04-21 20:05:32 -05:00
Jack Christensen
49a860125f Try to pacify finicky timing test on CI 2022-04-21 19:52:34 -05:00
Jack Christensen
097b6aacb7 Add time to logging failed Exec
fixes #1189
2022-04-21 19:26:25 -05:00