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
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
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
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
Kostas Stamatakis
2190a8e0d1
cleanup and add test for json codec
2024-12-30 23:09:19 +02:00
Kostas Stamatakis
6e9fa42fef
fix #2204
2024-12-30 22:54:42 +02:00
EinoPlasma
6d9e6a726e
Fix typo in test function name
2024-12-29 21:03:38 +08:00
EinoPlasma
02e387ea64
Fix method comment in PasswordMessage
2024-12-29 20:59:24 +08:00
merlin
e452f80b1d
TestErrNoRows: remove bad test case
2024-12-28 13:39:01 +02:00
merlin
da0315d1a4
optimisations of quote functions by @sean-
2024-12-28 13:31:09 +02:00
merlin
120c89fe0d
fix preallocations of quoted string
2024-12-28 13:31:09 +02:00
merlin
057937db27
add prefix to quoters tests
2024-12-28 13:31:09 +02:00
merlin
47cbd8edb8
drop too large values from memory pools
2024-12-28 13:31:09 +02:00
merlin
90a77b13b2
add docs to sanitize tests
2024-12-28 13:31:08 +02:00
merlin
59d6aa87b9
rework QuoteString and QuoteBytes as append-style
2024-12-28 13:31:08 +02:00
merlin
39ffc8b7a4
add lexer and query pools
...
use lexer pool
2024-12-28 13:31:08 +02:00
merlin
c4c1076d28
add FuzzQuoteString and FuzzQuoteBytes
2024-12-28 13:31:08 +02:00
merlin
4293b25262
decrease number of samples in go benchmark
2024-12-28 13:31:08 +02:00
merlin
ea1e13a660
quoteString
2024-12-28 13:31:08 +02:00
merlin
58d4c0c94f
quoteBytes
...
check new quoteBytes
2024-12-28 13:31:08 +02:00
merlin
1752f7b4c1
docs
2024-12-28 13:31:08 +02:00
merlin
ee718a110d
append AvailableBuffer
2024-12-28 13:31:08 +02:00
merlin
546ad2f4e2
shared bytestring
2024-12-28 13:31:08 +02:00
merlin
efc2c9ff44
buf pool
2024-12-28 13:31:08 +02:00
merlin
aabed18db8
add benchmark tool
...
fix benchmmark script
fix benchmark script
2024-12-28 13:31:08 +02:00
merlin
afa974fb05
base case
...
make benchmark more extensive
add quote to string
add BenchmarkSanitizeSQL
2024-12-28 13:31:08 +02:00
Vamshi Aruru
12b37f3218
Expose puddle.Pool's EmptyAcquireWaitTime in pgxpool's Stats
...
Addresses: https://github.com/jackc/pgx/issues/2205
2024-12-26 13:46:49 +05:30
Jack Christensen
bcf3fbd780
Merge pull request #2206 from alexandear/refactor-impossible-cond
...
Refactor Conn.LoadTypes by removing redundant check
2024-12-24 11:14:17 -06:00
Jack Christensen
f7c3d190ad
Merge pull request #2203 from martinyonatann/chore/check-array-and-remove-imposible-condition
...
check array just using `len` and remove `imposible condition`
2024-12-24 11:10:45 -06:00
Jack Christensen
473a241b96
Merge pull request #2202 from martinyonatann/chore/remove-unused-parameter
...
remove unused func and parameter
2024-12-24 09:32:07 -06:00
Oleksandr Redko
311f72afdc
Refactor Conn.LoadTypes by removing redundant check
2024-12-24 12:58:15 +02:00
martinpasaribu
877111ceeb
check array just using len and remove imposible condition
2024-12-22 23:57:28 +07:00
martinpasaribu
dc3aea06b5
remove unused func and parameter
2024-12-22 23:48:08 +07:00
Jack Christensen
e5d321f920
Merge pull request #2197 from alexandear/fix-generated-hdr
...
Update comments in generated code to align with Go standards
2024-12-21 12:40:23 -06:00
Oleksandr Redko
17cd36818c
Update comments in generated code to align with Go standards
2024-12-21 20:21:32 +02:00
Jack Christensen
24fbe353ed
Create changelog for v5.7.2
v5.7.2
2024-12-21 09:25:36 -06:00
Jack Christensen
3a1593b25b
Merge pull request #2198 from alexandear/fix-nilness
...
Handle errors in generate_certs
2024-12-21 08:27:55 -06:00
Jack Christensen
9d851d7c98
Fix integration benchmarks
2024-12-21 08:22:12 -06:00
Jack Christensen
dacffdc7e2
Merge pull request #2196 from alexandear/docs-improve-links
...
Improve links in README
2024-12-21 08:13:57 -06:00
Jack Christensen
bc7c840770
Merge pull request #2195 from LucasHild/master
...
Add CommitQuery to transaction options
2024-12-21 08:12:58 -06:00
Oleksandr Redko
043685147f
Handle errors in generate_certs
2024-12-18 02:31:56 +02:00
Oleksandr Redko
25329273da
Improve links in README
2024-12-18 02:02:06 +02:00
Jack Christensen
ad87d47089
Merge pull request #2194 from alexandear/refactor/pgconn-tests
...
Simplify pgconn tests by using T.TempDir
2024-12-17 17:45:16 -06:00
Oleksandr Redko
7cf7bc6054
Simplify pgconn tests by using T.TempDir
2024-12-17 16:09:32 +02:00