1337 Commits

Author SHA1 Message Date
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
(7471e7f9eb0f33a05e2f0cf06db8714850880d72)
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
Felix Geisendörfer
806a22a5ac travis: fix escaping 2017-11-12 15:47:18 +01:00
Felix Geisendörfer
690f148430 travis: move commands into separate scripts 2017-11-12 15:46:44 +01:00
Jack Christensen
4878d92339
Merge pull request #352 from felixge/fix-cratedb-regression
Fix CrateDB support (regression in ab9a1af)
2017-11-11 12:24:19 -05:00
Felix Geisendörfer
4dec986171 Fix CrateDB support (regression in ab9a1af)
See https://github.com/jackc/pgx/issues/320#issuecomment-338457176
2017-11-09 13:53:58 +01:00
Jack Christensen
f6d37536c4 Detect erroneous JSON(B) encoding
JSON(B) automatically marshals any value. Avoid marshalling values of
pgtype.JSON and pgtype.JSONB. The caller certainly meant to call on a
pointer.

See https://github.com/jackc/pgx/issues/350 for discussion.

refs #350
2017-11-04 19:09:24 -05:00
Jack Christensen
425fbe1c88 Fix ranges with text format where end is unbounded
fixes #342
2017-11-04 14:03:46 -05:00
Jack Christensen
d6cd3b1962 Add String method to pgtype.BoundType
Character representation is much easier to read than numeric.
2017-11-04 13:47:03 -05:00