272 Commits

Author SHA1 Message Date
Jack Christensen
3b0400a0d4 Test Go 1.15 and 1.16 in CI 2021-03-06 14:42:22 -06:00
Georges Varouchas
36c8fb8257 fix #65 : close cleanupDone channel on "FATAL" messages 2021-03-06 09:33:36 -06:00
Georges Varouchas
b9a1aad8d9 add failing test to highlight issue #65
if frontend returns a message with "Severity: FATAL", even after
calling "conn.Close()", the 'CleanupDone()' channel is still blocking
2021-03-06 09:33:36 -06:00
Jack Christensen
fb88a34cb4 Skip test with known issue on CockroachDB 2021-02-20 16:40:16 -06:00
Jack Christensen
4bde08d1a6 LRU statement cache tests handle CockroackDB 2021-02-13 11:19:09 -06:00
Jack Christensen
d05c52217a Initial CockroachDB testing 2021-02-13 10:47:22 -06:00
Jack Christensen
a78ab5bdcd Test should abort if cannot setup database 2021-02-13 09:39:42 -06:00
Jack Christensen
9cf5752625 Change Github CI to run on master 2021-01-30 16:48:51 -06:00
Jack Christensen
609cd81d64 Remove obsolete Travis badge 2021-01-30 16:47:51 -06:00
Jack Christensen
ed0090f610 Use race detector on Github CI 2021-01-30 16:44:17 -06:00
Jack Christensen
c10c60cad5 Add build matrix for Go and PG 2021-01-30 16:38:58 -06:00
Jack Christensen
c107f909a2 Create user for Unix domain socket 2021-01-30 16:28:27 -06:00
Jack Christensen
eb32285906 Use native PostgreSQL package
Also remove travis integration.
2021-01-30 16:22:38 -06:00
Jack Christensen
94608a2482 Merge branch 'master' into github-ci-wip 2021-01-30 13:05:59 -06:00
Jack Christensen
74517d7315 Fix test when PGSSLMODE=disable
When PGSSLMODE=disable no fallback config was created which would cause
the check that fallbacks are deep copied to crash on:

copied.Fallbacks[0].Port = uint16(5433)
2021-01-30 13:03:56 -06:00
Jack Christensen
a9c2b5c3cb Revert "Try to debug failing CI test"
This reverts commit 6c2a423dbc25d634270b04ecaac7a1d644037945.
2021-01-30 13:01:27 -06:00
Jack Christensen
6c2a423dbc Try to debug failing CI test 2021-01-30 12:58:25 -06:00
Jack Christensen
63bcdfde61 Fix CI link 2021-01-30 12:48:58 -06:00
Jack Christensen
7d8845a9d8 Initial import from pgtype 2021-01-30 12:47:34 -06:00
Jack Christensen
120139a206 Add link to PG docs for connString format
fixes #62
2021-01-14 18:22:21 -06:00
Moshe Katz
724bf94515 use proper pgpass location on Windows 2021-01-09 09:36:36 -06:00
Jack Christensen
e276d9b832 Add more documentation to TxStatus 2020-12-23 12:21:34 -06:00
ip.novikov
e0d22c1100 improve regexp
get shortest sequence between : and @
2020-12-05 22:11:52 +03:00
ip.novikov
a581247a12 Add check for url with broken password
replace broken password in parseConfigError message
2020-12-05 15:28:01 +03:00
Jack Christensen
3742d6209e Release v1.8.0 2020-12-03 19:12:18 -06:00
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
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
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
416f037e77 Fix docs for Timeout 2020-10-05 19:39:05 -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
Jack Christensen
be69c1c10b Fix parseDSNSettings with bad backslash
fixes #49
2020-09-10 19:40:52 -05:00
Jack Christensen
b6b3a86310 Update CI Go versions 2020-09-05 13:26:56 -05:00
Jack Christensen
0d4f029683 Exec(Params|Prepared) return ResultReader with FieldDescriptions loaded
Previously, it wasn't loaded until NextRow was called the first time.
2020-09-05 13:14:14 -05:00
Sebastiaan Mannem
5db484908c Changing SendBytesWithResults to ReceiveResults (that only does the reading). 2020-08-22 20:38:04 -05:00
Sebastiaan Mannem
1debbfeec4 Adding SendBytesWithResults option to receive data after sending a message (used by copy-both) 2020-08-22 20:38:04 -05:00
Jack Christensen
fdfc783345 Rename CleanupChan to CleanupDone 2020-08-20 22:08:40 -05:00
Jack Christensen
3eb5432c47 Add PgConn.CleanupChan 2020-08-20 22:00:21 -05:00
Jack Christensen
c894ca8b7d Update pgproto3 to v2.0.4 2020-08-01 05:49:56 -05:00
Jack Christensen
b6e34b44e5 Update pgproto3 2020-07-31 17:04:18 -05:00
Jack Christensen
f45b4d6b76 Release v1.6.4 2020-07-29 22:17:02 -05:00
Jack Christensen
44079b0d2c Fix panic on parsing DSN with trailing '='
Also correctly return error with leading '='.

fixes #47
2020-07-29 22:11:15 -05:00
Jack Christensen
4e4c4ea541 Fix deadlock on error after CommandComplete but before ReadyForQuery
See: https://github.com/jackc/pgx/issues/800
2020-07-29 21:47:23 -05:00
Jack Christensen
37c9edc242 Release v1.6.3 2020-07-22 06:43:39 -05:00
vahid-sohrabloo
271b0ac95e AppendCertsFromPEM doesn't have error and removes pgTLSArgs
AppendCertsFromPEM doesn't have error and removes pgTLSArgs because not used
2020-07-18 08:50:12 -05:00