2696 Commits

Author SHA1 Message Date
malstoun
8dc8431ef9 Add arguments count check to execParamsAndPreparedPrefix 2020-01-04 12:41:49 +03:00
bakape
9372218107 Don't synchronize with context.Background() 2020-01-01 19:34:56 +02:00
bakape
4d345164f1 Branch tests for nil context 2020-01-01 14:36:38 +02:00
bakape
7196234521 Benchmark nil context execution 2020-01-01 14:01:30 +02:00
bakape
89416dd805 Enable passing nil context 2020-01-01 13:09:50 +02:00
Jack Christensen
9cb58fc969 Fix large objects functionality when PreferSimpleProtocol = true
fixes #651
2019-12-27 11:17:12 -06:00
Jack Christensen
be1a8e51bc Add PG 12 to Travis test matrix 2019-12-23 11:08:21 -06:00
Jack Christensen
eb360b07be Tweak test for PG 12 compatibility 2019-12-23 11:08:21 -06:00
Jack Christensen
3e503b7b1a Add PostgreSQL 11 and 12 to the Travis build matrix 2019-12-21 14:41:09 -06:00
Jack Christensen
5fc867a833 Remove unused travis environment variable 2019-12-21 14:40:30 -06:00
Jack Christensen
18d1ed5ee5 Remove PostgreSQL 9.3 from Travis build matrix
PostgreSQL 9.3 is EOL so it doesn't make sense for pgconn to
specifically support. There are no known incompatibilities but it will
not longer be tested.
2019-12-21 14:37:09 -06:00
Jack Christensen
dd53b7488d Restart signalMessage when receiving non-error message in CopyFrom
fixes #21
2019-12-21 11:52:45 -06:00
Jack Christensen
bd0ce203e9 CopyFrom not table test was failing with syntax error 2019-12-21 10:31:27 -06:00
Jack Christensen
c7502af68b Add PostgreSQL time type support
fixes #15
2019-12-19 21:35:35 -06:00
Jack Christensen
2f2e01b9fc
Merge pull request #646 from johanbrandhorst/expose-default-driver
Add back GetDefaultDriver
2019-12-07 09:36:26 -06:00
Johan Brandhorst
d75362f396 Add back GetDefaultDriver
This method is useful when it is necessary
to wrap the pgx stdlib driver, for example to
add tracing and metrics.

Fixes #645
2019-12-07 10:19:51 +00:00
Jack Christensen
038f263a44 Add remaining int array conversions 2019-11-27 20:23:43 -06:00
Jack Christensen
52cb969ea1 Merge branch 'JohnnyQQQQ-master' 2019-11-27 20:17:12 -06:00
Jean-Philippe Quéméner
9ff83bc41c feat: add tests for less stricter numeric conversion 2019-11-26 17:31:13 +01:00
Jean-Philippe Quéméner
01ae643a48 feat: make conversion between numeric values and arrays less strict
closes https://github.com/jackc/pgx/issues/642
2019-11-26 17:11:54 +01:00
Jack Christensen
3dc25d5b9c
Merge pull request #640 from apantel/cockroach-test-cleanup
Clean up two test cases
2019-11-23 09:40:44 -06:00
Adam Pantel
167442e66b Add a couple error checks 2019-11-22 11:51:58 -05:00
Adam Pantel
f989008ad5 Clarify error reporting in TestConnQueryErrorWhileReturningRows 2019-11-22 11:03:46 -05:00
Adam Pantel
0a3cfab73e Eliminate race condition in TestListenNotifyWhileBusyIsSafe 2019-11-22 11:03:33 -05:00
Jack Christensen
32350bd1dc TestConnectCustomLookup must test with TCP connection
Test (correctly) fails if run on a Unix domain socket.
2019-11-18 07:29:57 -06:00
Jack Christensen
eb81d2926b Ignore errors sending Terminate message while closing connection
This mimics the behavior of libpq PGfinish.

refs #637
2019-11-18 07:29:57 -06:00
Jack Christensen
693ba65a4a Update pgtype to v1.0.3 2019-11-16 11:11:15 -06:00
Jack Christensen
7e1301257e Release 1.0.3 2019-11-16 11:10:32 -06:00
Jack Christensen
69e9c33daf Add RegisterConnConfig to stdlib
This restored functionality lost in the v3 to v4 transition when
RegisterDriverConfig was removed.

fixes #617
2019-11-16 11:06:57 -06:00
Jack Christensen
be36a7e14b Fix test and avoid change to array signatures
typed_array.go.erb was not updated back in
a8802b16cc593842f5c69b0f7cfb0de11d5cd3a8 when Value, EncodeBinary,
EncodeText, and MarshalJSON were changed to be defined on T instead of
*T. This has been corrected.
2019-11-14 20:40:41 -06:00
Alex Gaynor
0079108e29 Fixes #11 -- support initializing Array types from a slice of the value 2019-11-08 14:59:19 -05:00
Jack Christensen
f3a3ee1a0e Release v4.1.2 v4.1.2 2019-10-22 20:51:52 -05:00
Jack Christensen
e7c61d382e Upgrade to pgtype v1.0.2
Pull in pointer to pointer scan fix
2019-10-22 20:46:30 -05:00
Jack Christensen
f711de3591 Release 1.0.2 2019-10-22 20:45:14 -05:00
Jack Christensen
3bc1f8ac57
Merge pull request #10 from jaltavilla/pointer-to-custom-type
Scan into nullable custom types (pointers to pointers).
2019-10-22 20:42:19 -05:00
Jack Christensen
78a83eba6a Fix dbSavepoint.Begin recursive self call
It needed to call the inner tx.

fixes #633
2019-10-22 20:38:12 -05:00
jaltavilla
af517d68fc Scan into nullable custom types (pointers to pointers). 2019-10-21 17:21:42 -04:00
Jack Christensen
3da4ea1a97 Release 4.1.1 v4.1.1 2019-10-21 13:57:39 -05:00
Jack Christensen
0d8dcd87b0 Fix pgxpool Rows.CommandTag() 2019-10-21 13:57:39 -05:00
Jack Christensen
f395b32fa6 Added failing test for pointer to custom type 2019-10-19 11:43:24 -05:00
Jack Christensen
9449f4b081
Merge pull request #17 from skipcloud/sgibson/fix-comment
config: fix ValidateConnect comment
2019-10-16 09:21:38 -05:00
Skip Gibson
81b6ad72f6 config: fix ValidateConnect comment 2019-10-16 10:01:16 +01:00
Jack Christensen
aed55f0dee
Merge pull request #626 from tbutts/patch-1
Readme: update pkg paths for pgtype & pgmock
2019-10-14 10:00:58 -05:00
Butters
f41e3ab61f
Readme: update pkg paths for pgtype & pgmock
With the big v4 changes, some libraries that were part of pgx were migrated to standalone packages. The readme has been updated to reflect these new import paths, which will help consumers of the old pgtype/pgmock paths fix their own import statements.
2019-10-13 19:27:31 -04:00
Jack Christensen
e8a20809dd Release v4.1.0 v4.1.0 2019-10-12 11:28:39 -05:00
Jack Christensen
93a2aa5b2f Releasing a busy connection closes the connection
refs #622
2019-10-12 11:26:51 -05:00
Jack Christensen
4df62cf3d0 Release v1.1.0 2019-10-12 11:23:48 -05:00
Jack Christensen
0e52829a07 Clarify Go module requirement 2019-10-12 11:13:24 -05:00
Jack Christensen
10d5f5eaa8 Do not mutate config.Config.OnNotification in connect
fixes #618
2019-10-12 11:06:43 -05:00
Jack Christensen
178b4c1a64 Add test for larger batches 2019-10-12 10:46:09 -05:00