Jack Christensen
cba610c245
StatementErrored does not need context nor return an error
2020-11-11 15:52:59 -06:00
Jack Christensen
426124b32f
Add stmtcache.LRU test thjat integrates over the database
2020-11-11 15:48:49 -06:00
Ethan Pailes
a885de9c94
stmtcache: add new StatementErrored method
...
This patch adds a new StatementErrored method to the stmtcache.
This routine MUST be called by users of the cache whenever the
execution of a statement results in an error. This will allow
the cache to make an intelligent decision about whether or not
the statement needs to be purged from the cache.
2020-11-11 11:18:21 -05:00
Jack Christensen
93c6b60429
Explicityly state pgxpool's concurrency-safety
...
refs #866
2020-11-09 17:01:51 -06:00
Jack Christensen
740b3a5115
Fix: Text array parsing disambiguates NULL and "NULL".
...
This solution is a little awkward, but it avoids breaking backwards
compatibility.
fixes #78
2020-11-07 07:41:49 -06:00
Jack Christensen
eeaa26abee
Release v4.9.2
v4.9.2
2020-11-03 19:24:54 -06:00
Jack Christensen
d660c48ffc
Upgrade pgconn to 1.7.2 to fix slice capacity issue
...
fixes #859
2020-11-03 19:23:01 -06:00
Jack Christensen
b82b993fa8
Release v1.7.2
2020-11-03 19:20:03 -06:00
Jack Christensen
0f17ba2cf3
Fix unconstrained data value slices
...
See https://github.com/jackc/pgx/issues/859
2020-11-03 19:17:52 -06:00
Jack Christensen
c34a8731b6
Data row value slices need to be capacity limited
...
Otherwise, appending to a slice that came from a data row could
overwrite adjacent memory.
2020-11-03 19:15:07 -06:00
Jack Christensen
36a8da55cc
Fix Timestamptz.DecodeText with too short text
...
fixes #74
2020-11-03 08:31:05 -06:00
Jack Christensen
9898beaa2d
Release v4.9.1
v4.9.1
2020-10-31 17:36:36 -05:00
Jack Christensen
59a40dbf84
Upgrade pgconn and pgtype
2020-10-31 17:30:27 -05:00
Jack Christensen
af0ca3a39b
Fix simple protocol empty array and original recursive empty array issue
...
Original issue https://github.com/jackc/pgtype/issues/68
This crash occurred in the recursive assignment system used to support
multidimensional arrays.
This was fixed in 9639a69d451f55456f598c1aa8b93053f8df3088. However,
that fix incorrectly used nil instead of an empty slice.
In hindsight, it appears the fundamental error is that an assignment to
a slice of a type that is not specified is handled with the recursive /
reflection path. Or another way of looking at it is as an unexpected
feature where []T can now be scanned if individual elements are
assignable to T even if []T is not specifically handled.
But this new reflection / recursive path did not handle empty arrays.
This fix handles the reflection path for an empty slice by allocating an
empty slice.
2020-10-31 17:12:16 -05:00
Jack Christensen
9c2888b49e
Release v1.7.1
2020-10-31 16:25:01 -05:00
Jack Christensen
340bfece2c
Do not asyncClose in response to a FATAL PG error
...
This will reduce spurious server log messages on authentication
failures. See https://github.com/jackc/pgconn/pull/53 .
2020-10-29 21:20:28 -05:00
Feike Steenbergen
f3f5b70a87
Ensure the example code snippet compiles again
...
There were 2 errors when using the example code:
- not enough arguments in call to pgConn.Close
- no new variables on left side of :=
With these changes, the example works again.
2020-10-29 20:49:03 -05:00
Jack Christensen
7c47415150
Fix SendBatch of all prepared statements with statement cache disabled
...
fixes #856
2020-10-29 20:28:57 -05:00
Jack Christensen
9d7fc8e63a
AssignTo pointer to pointer to slice and named types
...
fixes #69
2020-10-24 09:21:42 -05:00
Simo Haasanen
9639a69d45
Adds checks for zero length arrays.
...
Assigning values from nil or zero length elements or dimensions now return immediately as there are no values to assign.
2020-10-20 19:52:05 +01:00
Tomas Volf
e92478ec70
Fix Inet.Set to handle nil net.IP correctly
...
When nil IP is returned from net.ParseIP, it is accepted into Inet type,
but not properly marked as being Null. That introduces issues later on
when calling for example EncodeBinary, since it does not assume this can
happen.
This commit resolves that by properly detecting zero-length net.IP and
setting status to Null if that is the case.
2020-10-13 15:26:09 +02:00
Oleg Kovalov
5f8d853b34
remove unused definitions on conn.go
2020-10-12 08:13:52 -05:00
duohedron
2bc8c67e4a
Fix misleading names parseString and parseFloat64 in polygon.go
2020-10-08 07:59:44 -05:00
duohedron
b55f972f49
Add comment to Polygon.Set()
2020-10-08 07:59:44 -05:00
duohedron
8aa7211df5
Add tests to Polygon
2020-10-08 07:59:44 -05:00
duohedron
6166c99b77
Add Undefined status to invalid Polygon
2020-10-08 07:59:44 -05:00
duohedron
e09987f1d6
Add tests to Polygon
2020-10-08 07:59:44 -05:00
duohedron
2dca42ee7d
Add Set(string|[]Vec2|[]float64) to Polygon
2020-10-08 07:59:44 -05:00
Erik Agsjö
66c36ff24f
Support setting infinite timestamps
2020-10-08 07:58:57 -05:00
drpytho
0c145a3faa
Add/Copy docstring from puddle
2020-10-06 09:04:33 -05:00
Jack Christensen
416f037e77
Fix docs for Timeout
2020-10-05 19:39:05 -05:00
Oleg Kovalov
5ebf34e484
remove unused definitions on messages.go
2020-10-05 19:31:25 -05:00
Oleg Kovalov
557018a24e
use simpler strings funcs
2020-10-05 19:26:33 -05:00
Jack Christensen
376361f53d
Add tests for Int(2|4|8).Set accepting float(32|64)
2020-10-03 08:36:40 -05:00
lqu3j
909d814f65
support float64, float32 convert to int2, int4, int8
2020-09-29 13:10:38 +08:00
Jack Christensen
2a8ae6f269
Release v4.9.0
v4.9.0
2020-09-26 11:58:01 -05:00
Jack Christensen
f23bd4824d
Upgrade pgtype to v1.5.0
2020-09-26 11:56:52 -05:00
Jack Christensen
3e9614fdb4
Upgrade pgconn to v1.7.0
2020-09-26 11:56:52 -05:00
Jack Christensen
f9204b4c10
Upgrade puddle to v1.1.2
2020-09-26 11:56:52 -05:00
Jack Christensen
116eba4401
Release v1.5.0
2020-09-26 11:48:37 -05:00
Jack Christensen
035868ca0c
Release v1.7.0
2020-09-26 11:39:23 -05:00
Jack Christensen
28d24269e9
Upgrade pgproto3 to v2.0.5
2020-09-26 11:35:23 -05:00
Bekmamat
d7f92427ad
fixed marshaling and unmarshaling
2020-09-22 08:18:39 -05:00
Jack Christensen
835cf1b068
Fix: Bind.MarshalJSON when ParameterFormatCodes is nil or single element
...
refs #10
2020-09-17 17:03:30 -05:00
Jack Christensen
fbe354aea1
Remove editor specific .gitignore
2020-09-15 17:21:13 -05:00
bakmataliev
6777e0294b
eliminate regex dep
2020-09-15 13:24:17 +03:00
bakmataliev
cd9b888ff6
Remove unnecessary check for null
2020-09-11 16:28:49 +03:00
bakmataliev
d540ca39be
New marshalers have been added
2020-09-11 16:24:48 +03:00
Jack Christensen
be69c1c10b
Fix parseDSNSettings with bad backslash
...
fixes #49
2020-09-10 19:40:52 -05:00
Harmen
040df1ccef
fix link to 'pgtype' repo
2020-09-10 09:30:26 -05:00