Andrey Borodin
70be4b4a02
Fix incoherent type assignment
2021-03-12 08:31:29 -06:00
Andrey Borodin
26ccb4ee08
Resume fallback on server error
...
When server responds with "TLS required" or too "many connections for role" fallbacks are not traversed any further. This could be OK, but fallbacks without TLS are added autoatically so that if we have multiple hosts requiring TLS we never traverse beyond first one.
2021-03-12 08:31:29 -06:00
Jack Christensen
0f1bda20b0
Fix numeric NaN support
...
fixes #93
2021-03-11 19:49:03 -06:00
Jack Christensen
38ab93613b
Make CopyFrom log message more specific
2021-03-11 19:22:40 -06:00
Patrick Hemmer
41fa6e844c
Add logging on CopyFrom
...
Logging previously only logged statement results on Exec() and Query(), but not CopyFrom(). This makes change makes it consistent.
2021-03-11 19:21:42 -06:00
Jack Christensen
0cc35d7a60
Update supported versions
2021-03-06 17:25:15 -06:00
Jack Christensen
d46e447a39
Add CockroachDB to CI
2021-03-06 17:21:45 -06:00
Jack Christensen
9e55cff611
Fix testing Fatalf in goroutines
2021-03-06 17:21:45 -06:00
Jack Christensen
5daa019e4e
Update README.md to authentication test setup
2021-03-06 16:08:38 -06:00
Jack Christensen
0d307bcc5e
Add CockroachDB to CI
2021-03-06 16:06:32 -06:00
Jack Christensen
1e905d8e38
Refactor connection strings into build matrix
...
This is in preparation for adding CockroachDB to the build matrix.
2021-03-06 15:20:03 -06:00
Jack Christensen
7de3392269
Manually specify all build matrix options
...
- Saves some CI time by only testing older version of Go once
- Specify connection
2021-03-06 15:15:03 -06:00
Jack Christensen
a0350a932a
ci.yml consistently uses kebab case
2021-03-06 15:01:44 -06:00
Jack Christensen
cf5894e092
Use std errors instead of golang.org/x/xerrors
...
New error functionality was introduced in Go 1.13. pgconn only
officially supports 1.15+. Transitional xerrors package can now be
removed.
2021-03-06 14:45:33 -06:00
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
d245ed47f1
Increase pool release conn wait time for CI
...
No simple way around sleeping for certain tests.
2021-03-04 20:06:15 -06:00
Jack Christensen
f8c43c97ab
Document prefer_simple_protocol config option
2021-03-04 19:58:52 -06:00
Jack Christensen
d9ac491657
Add prefer_simple_protocol option to ParseConfig
...
refs #650
2021-03-04 19:56:14 -06:00
Jack Christensen
1dc7133a63
Simplify CockroachDB detection
2021-02-27 10:40:06 -06:00
Jack Christensen
09371f21d0
Use JSON format compat with PG and CockroachDB
2021-02-27 10:28:45 -06:00
Jack Christensen
fea4bc4318
Use bigint in tests for compat. with CockroachDB
2021-02-27 10:26:14 -06:00
Jack Christensen
fb60d0780e
Skip unsupported testing functionality on CockroachDB
2021-02-27 10:25:45 -06:00
Jack Christensen
2b63da6f12
Skip backend PID dependent tests on CockroachDB
2021-02-27 10:03:58 -06:00
Jack Christensen
1e15bdc874
Remove deferred from test tables where unneeded
2021-02-27 09:57:14 -06:00
Jack Christensen
ff6ab48e00
Skip tests with parameter description server issues
2021-02-27 09:52:51 -06:00
Jack Christensen
674cf70c51
Skip tests with known server issues
2021-02-27 09:52:51 -06:00
Jack Christensen
775d3b1049
Fake success on example
2021-02-27 09:52:51 -06:00
Jack Christensen
30d44c0369
Test code instead of error message for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
378bd72b67
Allow flexible number types for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
44733732e4
Skip number type sensitive test on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
eaf3e84963
Add timeout to serialization failure test
...
When run with CockroachDB it appears to hang without the timeout.
2021-02-27 09:52:51 -06:00
Jack Christensen
bac0905915
Specify type for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
ef2adcee08
Skip number type dependent test for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
b01dd934e5
Allow different int size for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
fe3a710a5a
Skip test depending on exact int types on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
9fe7962445
Skip another initially deferred test on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
80e7f6b0d3
Skip testing circle type on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
c588c47ddd
Skip client_encoding test for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
3a27bcd459
Skip standard_conforming_strings = off test for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
5a16bad252
Skip deferred constraint tests on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
c4e66b05de
Test accepts bigint vs int for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
f29aef4409
Skip test with serial on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
2e50e59491
Skip isolation level test for CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
2f95f67ef5
Remove initially deferred when not needed
...
Makes test compatible with CockroachDB.
2021-02-27 09:52:51 -06:00
Jack Christensen
c8a7c89f15
Skip tests using pg_terminate_backend on CockroachDB
2021-02-27 09:52:51 -06:00
Jack Christensen
19441eee28
CockroachDB returns bigint instead of int
2021-02-27 09:52:51 -06:00
Jack Christensen
5f58e0e443
Cockroach DB uses different error code
2021-02-27 09:52:51 -06:00
Jack Christensen
ec5dfb472c
Skip domain types for CockroachDB
2021-02-27 09:52:51 -06:00