Jack Christensen
123b59a57e
Ensure planning encodes and scans cannot infinitely recurse
...
https://github.com/jackc/pgx/issues/2141
2024-10-05 12:20:50 -05:00
zene
10e11952bd
changed style of two comments
2024-10-05 19:54:02 +03:00
Jack Christensen
32a6b1b200
Skip xid8 test on PG < 13 and CRDB
2024-10-05 10:44:13 -05:00
Jack Christensen
f0783c6fbe
Add xid8 type
...
https://github.com/jackc/pgx/discussions/2137
2024-10-05 10:16:42 -05:00
zene
0290507ff2
remove global atomics
2024-10-04 09:26:37 +03:00
zene
8f8470edaf
add message body size limits in frontend and backend
2024-09-27 15:17:47 +03:00
Jack Christensen
a95cfbb433
Merge pull request #2129 from s-montigny-desautels/fix/timestamp-json-unmarshal
...
Fix pgtype.Timestamp json unmarshal
2024-09-24 17:47:28 -05:00
Shean de Montigny-Desautels
7803ec3661
Fix pgtype.Timestamp json unmarshal
...
Add the missing 'Z' at the end of the timestamp string, so it can be
parsed as timestamp in the RFC3339 format.
2024-09-23 18:12:32 -04:00
Lucas Hild
64ca07e31b
Add commit query to tx options
2024-09-23 16:46:58 +02:00
Jack Christensen
fd0c65478e
Fix prepared statement already exists on batch prepare failure
...
When a batch successfully prepared some statements, but then failed to
prepare others, the prepared statements that were successfully prepared
were not properly cleaned up. This could lead to a "prepared statement
already exists" error on subsequent attempts to prepare the same
statement.
https://github.com/jackc/pgx/issues/1847#issuecomment-2347858887
2024-09-13 08:03:37 -05:00
Jack Christensen
672c4a3a24
Release v5.7.1
2024-09-10 07:25:07 -05:00
Jack Christensen
f8a5a5c9e3
Update golang.org/x/crypto and golang.org/x/text
2024-09-10 07:17:03 -05:00
Jack Christensen
ab36c2c0dd
Upgrade puddle to v2.2.2
...
This removes the import of nanotime via linkname.
2024-09-10 07:11:44 -05:00
Jack Christensen
ce66b1dae4
Fix data race with TraceLog.Config initialization
...
https://github.com/jackc/pgx/pull/2120
2024-09-10 07:06:39 -05:00
Jack Christensen
d1205a6dbc
Release v5.7.0
2024-09-07 10:23:34 -05:00
Jack Christensen
97d20ccfad
Merge pull request #2115 from ninedraft/sql-err-no-rows
...
Use sql.ErrNoRows as value for pgx.ErrNoRows
2024-08-26 07:40:46 -05:00
Jack Christensen
e9bd382c51
Merge pull request #2114 from jennifersp/master
...
add byte length check to uint32
2024-08-26 07:28:47 -05:00
Jack Christensen
603f2337d6
Merge pull request #2113 from mateuszkowalke/master
...
Add comment for pgtype.Interval struct
2024-08-26 07:28:29 -05:00
merlin
035bbbe0cb
Use sql.ErrNoRows as value for pgx.ErrNoRows
2024-08-26 14:01:37 +03:00
jennifersp
73bbced270
add byte length check to uint32
2024-08-23 16:17:07 -07:00
mateuszkowalke
4171f554d4
Add additional info for nullable pgtype types
...
Additional information warns about using nullable types being
used as parameters to query with Valid set to false.
2024-08-23 15:15:40 +02:00
Jack Christensen
b197994b1f
Merge pull request #2112 from jennifersp/master
...
support text scanner for binary format for uint32
2024-08-23 07:05:15 -05:00
jennifersp
57fd684068
update struct name
2024-08-22 16:51:42 -07:00
jennifersp
926913ad66
rm bound check
2024-08-21 15:12:36 -07:00
jennifersp
b9f77cb1b3
fix typo
2024-08-21 12:27:23 -07:00
jennifersp
218c15a4eb
support text scanner for binary format for uint32
2024-08-21 12:04:54 -07:00
Jack Christensen
4f7e19d67d
Merge pull request #2108 from jackc/ci-tests-go-1.23
...
CI tests Go 1.23
2024-08-15 18:41:48 -05:00
Jack Christensen
0cbc5db39d
CI tests Go 1.23
2024-08-15 18:33:43 -05:00
Jack Christensen
5747f37d9c
Fix: Scan and encode types with underlying types of arrays
...
Rather than special case the reported issue with UUID and [16]byte, this
commit allows the system to find the underlying type of any type that is
an array.
fixes https://github.com/jackc/pgx/issues/2107
2024-08-15 18:20:07 -05:00
Jack Christensen
d6fc8b02b4
Merge pull request #2098 from stringintech/tracelog-time-key
...
add TraceLogConfig with customizable TimeKey and ensureConfig method for default initialization
2024-08-13 18:39:21 -05:00
Jack Christensen
c457de62c9
Fix doc discrepancies between Tx interface and pgxpool implementation
...
The error is not wrapped at the moment, but document that it may be.
fixes https://github.com/jackc/pgx/issues/2104
2024-08-07 08:03:41 -05:00
stringintech
216049c62b
add TraceLogConfig with customizable TimeKey and ensureConfig method for default initialization
2024-07-26 22:58:14 +03:30
Jack Christensen
a68e14fe5a
Explicitly disclaim support for time with time zone
2024-07-23 17:27:05 -05:00
Jack Christensen
ea9610f672
Merge pull request #2084 from EpicStep/multiple-tracing
...
Implement 'MultiTracer'
2024-07-15 08:22:27 -05:00
Stepan Rabotkin
7af618e423
feat: add pool tracing to 'MultiTracer' & move it to another package
2024-07-13 17:04:04 +03:00
Stepan Rabotkin
3f270eec7d
feat: add 'MultiTracer' to go doc & cover it
2024-07-13 02:02:22 +03:00
Stepan Rabotkin
8e46d2117c
refac: export 'MultiTracer' fields
2024-07-13 01:40:46 +03:00
Jack Christensen
9530aea47b
Merge pull request #2083 from sodahealth/xml-codec
...
V1 XMLCodec supports encoding + scanning XML column type
2024-07-12 16:49:08 -05:00
nickcruess-soda
a8aaa37363
fix(test): skip CockroachDB since it doesn't support XML
2024-07-12 09:56:59 -05:00
Jack Christensen
67aa0e5a65
Merge pull request #2085 from nolandseigler/rows-snake-case
...
RowToStructByName Snake Case Collision
2024-07-12 09:00:27 -05:00
Jack Christensen
96791c88cd
Merge pull request #2082 from heavycrystal/url-parse-err-fix
...
don't print URL when url.Parse returns an error
2024-07-12 08:52:09 -05:00
nolandseigler
71a8e53574
use normalized equality or strict equality check in rows.go fieldPosByName
2024-07-12 08:50:54 -04:00
Kevin Biju
13e212430d
address review feedback
2024-07-12 18:11:09 +05:30
nolandseigler
b25d092d20
formatting
2024-07-11 23:30:28 -04:00
nolandseigler
7fceb64dee
in rows.go 'fieldPosByName' use boolean to replace '_' and only execution replacements when there are no db tags present
2024-07-11 23:28:21 -04:00
nolandseigler
7a35585143
example test case that demonstrates snake case collision in db tags caused by rows.go 'fieldPosByName'
2024-07-11 22:39:29 -04:00
Stepan Rabotkin
a787630988
feat: implement 'MultiTracer'
2024-07-11 23:41:17 +03:00
nickcruess-soda
37681a4f48
chore: remove unused JSONCodec code, correct typo
2024-07-11 15:18:20 -05:00
nickcruess-soda
c7b9dc0e00
feat: add pgtype.XMLCodec based on pgtype.JSONCodec
2024-07-11 15:17:55 -05:00
Kevin Biju
f007d84675
don't print url when url.Parse returns an error
2024-07-10 22:46:32 +05:30