Commit Graph

1294 Commits (19a8df16b60b94a7a9e518af7afd624ff714e59e)

Author SHA1 Message Date
Sean Chittenden 52bada3401
Add a clientcert example to simplify future TLS testing. 2018-02-02 00:29:37 -08:00
Sean Chittenden 8078930406
Add TLS arg parsing to ParseDSN().
Factor out the TLS cert handling and add it to `configTLS()` via a
`struct` argument.
2018-02-01 23:51:50 -08:00
Sean Chittenden d7f24b91f4
Make ParseURI() compatible with lib/pq's TLS keywords.
Add support for:

- `sslrootcert`
- `sslcert`
- `sslkey`

All three arguments, like thir `gitub.com/lib/pq` counterparts,
are filesystem paths.
2018-02-01 22:58:14 -08:00
Sean Chittenden 4506a3e359
Gratuitously rename `configSSL()` to `configTLS()`.
SSL is dead, Jim.
2018-02-01 15:07:59 -08:00
Jack Christensen da3231b0b6 Release 3.1.0 2018-01-15 11:48:07 -06:00
Jack Christensen 5f24beb4f0 Test database name in parsing tests 2018-01-15 11:47:59 -06:00
Jack Christensen f5c7ef0957 Add docs regarding Batch.Send deadlock potential
refs #374
2018-01-15 10:37:16 -06:00
Jack Christensen b85df46c9b Merge branch 'eruca-patch-1' 2018-01-13 18:15:01 -06:00
Jack Christensen a680463718 Import encoding/json package 2018-01-13 18:14:42 -06:00
Jack Christensen 6ca9b1279e Merge branch 'patch-1' of https://github.com/eruca/pgx into eruca-patch-1 2018-01-13 18:12:35 -06:00
Jack Christensen 7f782ca6c9 Merge branch 'aka-rider-pgtype-bpchar' 2018-01-13 18:11:12 -06:00
Jack Christensen 7546b5bd30 Merge branch 'pgtype-bpchar' of https://github.com/aka-rider/pgx into aka-rider-pgtype-bpchar 2018-01-13 18:10:33 -06:00
Jack Christensen 2c07b03087 Parse connect_timeout into Dial func
Instead of adding Timeout field which could conflict with custom Dial
func.
2018-01-13 18:02:13 -06:00
Jack Christensen 9281f057ae Merge branch 'timeout' of https://github.com/cyberdelia/pgx into cyberdelia-timeout 2018-01-13 17:31:22 -06:00
Jack Christensen 3707b79782 Add prefer simple protocol support to stdlib
Test code partially taken from james-lawrence
(7471e7f9eb)
2018-01-13 13:46:20 -06:00
Jack Christensen bd76a96882 Add ConnConfig.PreferSimpleProtocol
Allows configuring on a connection basis to prefer the simple protocol /
disable implicit prepared statements.

refs #331
2018-01-13 12:05:33 -06:00
Jack Christensen 50627257f9 Merge branch 'james-lawrence-feature/conn-info' 2018-01-13 10:41:28 -06:00
Jack Christensen cf756cb386 Merge branch 'feature/conn-info' of https://github.com/james-lawrence/pgx into james-lawrence-feature/conn-info 2018-01-13 10:34:30 -06:00
Jack Christensen 119ba7a449 Fix go vet issues 2018-01-13 10:08:02 -06:00
Iurii Krasnoshchok 90de4adfa7 Add support for bpchar type 2018-01-02 12:29:40 +01:00
eruca de72a2c730
UnmarshalJSON for Int8 missing 2017-12-29 21:09:22 +08:00
Jack Christensen 4fb47ac8c9
Merge pull request #371 from ferhatelmas/gofmt-simplify
Run gofmt with simplify flag
2017-12-23 10:32:44 -06:00
Jack Christensen da564d2801 Merge branch 'aka-rider-fix-record-panic' 2017-12-23 10:24:32 -06:00
Jack Christensen 21dad60cf7 Add test for record with unknown OID 2017-12-23 10:24:09 -06:00
Jack Christensen fcf7df042b Merge branch 'fix-record-panic' of https://github.com/aka-rider/pgx into aka-rider-fix-record-panic 2017-12-23 10:21:50 -06:00
Jack Christensen fcf7db2eb8
Merge pull request #367 from cyberdelia/eol
Postgres 9.2 is not supported since September 2017
2017-12-23 10:01:52 -06:00
ferhat elmas 763deea17e Run gofmt with simplify flag 2017-12-21 23:45:26 +01:00
Iurii Krasnoshchok 0bc891e780 Return error on unknown oid while decoding record instead of panic 2017-12-20 14:47:52 +01:00
Timothée Peignier 200f65cd09
Postgres 9.2 is not supported since September 2017 2017-12-16 19:25:07 -08:00
Timothée Peignier 1bec450326
Handle timeout parameters 2017-12-16 19:18:33 -08:00
James Lawrence 393e9f4fd3 allow overriding connection info 2017-12-16 18:02:21 -05:00
Jack Christensen cbb3fa5ecc Fix reading interrupted messages
When an message is received and a timeout occurs after reading the
header but before reading the entire body the connection state could
be corrupted due to the header being consumed. The next read would
consider the body of the previous message as the header for the next.

fixes #348
2017-12-16 13:45:22 -06:00
Jack Christensen 1ed4024c70
Merge pull request #363 from jackc/fix-travis-pg-10
Use dpkg to compare postgresql versions for travis
2017-12-16 12:44:37 -06:00
Jack Christensen 128d7f919d Use dpkg to compare postgresql versions for travis
Otherwise PostgreSQL 10 doesn't get logical replication configured.
2017-12-16 12:17:25 -06:00
Jack Christensen 51f73d7229 Add PostgreSQL 10 to Travis 2017-12-16 11:07:20 -06:00
Jack Christensen b0c3e7e8b1
Merge pull request #361 from AlekSi/patch-2
Use Retina-friendly SVG badge
2017-12-09 11:18:35 -06:00
Jack Christensen d7c2282f2f
Merge pull request #360 from dntj/patch-1
Fix docs in stdlib.
2017-12-09 11:07:44 -06:00
Alexey Palazhchenko ef4e998ed2
Use Retina-friendly SVG badge 2017-12-07 18:54:46 +03:00
Nick Jones e86386c8d2
Fix docs in stdlib. 2017-12-07 16:28:54 +11:00
Jack Christensen 2b88c8f64f
Merge pull request #358 from dvrkps/patch-1
travis: update go version
2017-11-27 09:24:54 -06:00
Davor Kapsa b379fc1f6a
travis: update go version 2017-11-24 14:27:35 +01:00
Jack Christensen e3c5552ff1
Merge pull request #357 from plopik/master
ConnPool begin should not retry if ctx is done
2017-11-22 08:00:28 -06:00
Gaspard Douady 9530d7fa4c ConnPool begin should not retry if ctx is done 2017-11-21 16:54:58 +01:00
Jack Christensen 152dbffa4a
Merge pull request #356 from jackc/add-bit-type
Add support for bit type
2017-11-18 21:27:06 -06:00
Jack Christensen 5e08a4a5f1 Add support for bit type 2017-11-18 21:13:34 -06:00
Jack Christensen 6c3e88bb82 Merge branch 'felixge-cratedb-travis' 2017-11-18 18:08:48 -06:00
Jack Christensen 1432d58c51 Merge branch 'cratedb-travis' of https://github.com/felixge/pgx into felixge-cratedb-travis 2017-11-18 18:06:52 -06:00
Jack Christensen 5785eea828 Fix missing interval mapping 2017-11-17 09:37:57 -06:00
Jack Christensen 546a1e8ecf Document parameter notation in stdlib docs
refs #351
2017-11-17 09:37:57 -06:00
Felix Geisendörfer 1bebe56697 travis: add connection test coverage for cratedb 2017-11-12 15:47:26 +01:00