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
Jack Christensen
e16749774d
Use named value instead of literal
2017-11-04 13:37:47 -05:00
Jack Christensen
2b4558fe22
Fix time logging for QueryEx
...
fixes #341
2017-10-28 13:05:46 -05:00
Jack Christensen
0d3b378440
Fix missing library on travis
2017-10-26 21:47:28 -04:00
Jack Christensen
82cd87d502
Support nil pointers to value implementing driver.Valuer
...
fixes #339
2017-10-26 21:37:06 -04:00
Jack Christensen
21ef449944
Merge pull request #340 from ligustah/patch-1
...
Use logrus.FieldLogger instead of *logrus.Logger
2017-10-17 20:31:45 -05:00
Jack Christensen
ab9a1af65b
Add support for array of enum
...
fixes #338
2017-10-17 20:31:11 -05:00
Jack Christensen
ac5d463e85
PostgreSQL 10 coerces unknown types to text
...
This is no longer an error. See PostgreSQL commit 1e7c4bb00.
2017-10-17 20:31:11 -05:00
André Bierlein
4dea6c902e
Use logrus.FieldLogger instead of *logrus.Logger
...
This allows supplying a logrus logger that already has fields configured
2017-10-10 16:58:24 +02:00
Jack Christensen
63f58fd32e
Add UnmarshalJSON to a few types
2017-09-29 15:26:37 -05:00
Jack Christensen
f71bf5db91
Merge pull request #336 from felixge/cratedb
...
Support CrateDB
2017-09-29 11:14:24 -05:00
Felix Geisendörfer
52bec9bec5
Support CrateDB
2017-09-27 18:32:18 +02:00
Jack Christensen
e7924c7590
Merge branch 'plopik-master'
...
* plopik-master:
Add doc for (*Tx) BeginBatch()
New beginBatch on transaction object
2017-09-25 11:01:54 -05:00
Jack Christensen
5789af0b64
Add doc for (*Tx) BeginBatch()
2017-09-25 11:01:30 -05:00
Jack Christensen
3ed4e7488e
Merge branch 'master' of https://github.com/plopik/pgx into plopik-master
...
* 'master' of https://github.com/plopik/pgx :
New beginBatch on transaction object
2017-09-25 10:56:11 -05:00
Jack Christensen
d51cb880e9
Add more required libs for testing
2017-09-25 10:26:55 -05:00
Jack Christensen
c1e30c8e14
Merge pull request #330 from manniwood/add-errors-pkg-to-instructions
...
Adds `go get github.com/pkg/errors` to README.md
2017-09-25 10:25:17 -05:00
Jack Christensen
3ee7b5caa9
Merge pull request #332 from manniwood/remove-dup-ifs
...
Removes duplicate if statements in test
2017-09-25 10:13:48 -05:00
Gaspard Douady
554a4d08ec
Merge branch 'master' into master
2017-09-25 10:41:52 +02:00
Gaspard Douady
38e2b9d449
New beginBatch on transaction object
...
A batch on a tx object does not open and close a transaction itself and
instead use the tx object to ensure the transactionality of the batch
remove unused boolean 'sent' in batch struct
2017-09-25 10:36:41 +02:00
Manni Wood
94cee0dce0
Removes duplicate if/else
2017-09-24 22:17:55 -04:00
Manni Wood
668eec13fc
Adds go get github.com/pkg/errors
to README.md
2017-09-23 12:07:24 -04:00
Jack Christensen
015b56a04f
Merge branch 'wingedpig-master'
...
* wingedpig-master:
Reverted breaking API change to CreateReplicationSlot. Instead, the new version that returns the consistent_point and snapshot_name values is called CreateReplicationSlotEx().
Changed CreateReplicationSlot to return the consistent_point and snapshot_name.
2017-09-22 09:36:31 -05:00
Jack Christensen
89e8dad166
Merge branch 'master' of https://github.com/wingedpig/pgx into wingedpig-master
...
* 'master' of https://github.com/wingedpig/pgx :
Reverted breaking API change to CreateReplicationSlot. Instead, the new version that returns the consistent_point and snapshot_name values is called CreateReplicationSlotEx().
Changed CreateReplicationSlot to return the consistent_point and snapshot_name.
2017-09-22 09:34:19 -05:00
Mark Fletcher
fd93b83433
Reverted breaking API change to CreateReplicationSlot. Instead, the new version that returns the consistent_point and snapshot_name values is
...
called CreateReplicationSlotEx().
2017-09-21 09:58:20 -07:00
Jack Christensen
66031d2435
Merge branch 'plopik-fixqueryrow'
...
* plopik-fixqueryrow:
Fix incomplete selects during batch
Fix queryRow leftover message on conn
2017-09-21 11:34:45 -05:00