3405 Commits

Author SHA1 Message Date
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
Jack Christensen
a6d902777d Skip LISTEN / NOTIFY tests for CockroachDB 2021-02-27 09:52:51 -06:00
Jack Christensen
45c2b71377 Skip tests for cidr type for CockroachDB 2021-02-27 09:52:51 -06:00
Jack Christensen
909398127d Skip large objects tests for CockroackDB 2021-02-27 09:52:51 -06:00
Jack Christensen
37884a20e7 Use testify and more forgiving numeric equality
PostgreSQL generate_series can return type int while CockroachDB always
returns bigint.
2021-02-27 09:52:51 -06:00
Jack Christensen
ac2918b9a3 Add BeginFunc and BeginTxFunc
fixes #821
2021-02-20 18:30:18 -06:00
Jack Christensen
373bb84e9d Add *pgxpool.AcquireFunc
refs #821
2021-02-20 17:16:33 -06:00
Jack Christensen
fb88a34cb4 Skip test with known issue on CockroachDB 2021-02-20 16:40:16 -06:00
Jack Christensen
abeb337246 Accept nil *time.Time in Time.Set 2021-02-20 09:28:14 -06:00
Pau Sanchez
9b58ab2db8 Make ScanArgError fields public 2021-02-20 08:43:57 -06:00
Jack Christensen
4bde08d1a6 LRU statement cache tests handle CockroackDB 2021-02-13 11:19:09 -06:00
Jack Christensen
927a15124e Update supported versions 2021-02-13 10:59:00 -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
Pau Sanchez
8ad672475a Make ScanArgError public to allow identification of offending column
fixes #931
2021-02-13 08:56:11 -06:00
Jack Christensen
922508c785 Replace Travis with Github CI 2021-01-30 17:17: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
Fabrice Aneche
14050e286d fix data map 2021-01-27 16:36:58 -06:00
Fabrice Aneche
9b59dd0346 added a kitlog level log adapter 2021-01-27 16:36:58 -06:00
davidsbond
aa8604b5c2 Add Ping method to pgxpool.Conn
Adds the Ping method to pgxpool.Conn, returning the result of calling Ping on
the underlying pgx.Conn.
2021-01-26 20:46:57 -06:00
Jack Christensen
120139a206 Add link to PG docs for connString format
fixes #62
2021-01-14 18:22:21 -06:00
Stephane Martin
6830cc0984 Fix: also consider \r, \f, \t as whitespace (jackc/pgtype#86) 2021-01-14 18:10:48 -06:00
Stephane Martin
59b79a2e49 Fix: escaped strings when they start or end with a newline char (jackc/pgtype#86) 2021-01-14 18:10:48 -06:00
Vasilii Novikov
1e141d8c32 Add tsrange array type. 2021-01-09 09:40:43 -06:00
Moshe Katz
724bf94515 use proper pgpass location on Windows 2021-01-09 09:36:36 -06:00
Robert Froehlich
210a217818 Add BeforeConnect callback to pgxpool.Config.
This allows for connection settings to be updated without having to create
a new pool. The callback is passed a copy of the pgx.ConnConfig and will
not impact existing live connections.
2021-01-02 15:08:59 -08:00
Jack Christensen
b23d41c399 Add CI badge 2020-12-28 13:11:36 -06:00
Jack Christensen
6e11216708 Yet another CI tweak 2020-12-28 13:02:34 -06:00
Jack Christensen
be67555d02 Another CI tweak 2020-12-28 12:56:41 -06:00
Jack Christensen
e2115310b7 More CI 2020-12-28 12:50:42 -06:00
Jack Christensen
ea92194719 Add PostgreSQL service to CI 2020-12-28 12:35:01 -06:00
Jack Christensen
97f8f6a25a
Begin CI with Github Actions 2020-12-28 12:22:56 -06:00
Yuli Khodorkovskiy
1213b69774 Add support to ErrorResponse for unlocalized severity
Add missing 'V' field for unlocalized severity added in PG versions 9.6
and greater. See https://www.postgresql.org/docs/current/protocol-error-fields.html
2020-12-28 10:22:55 -06:00