Jack Christensen
26f6ae2c86
Merge pull request #415 from regeda/numeric_with_uint64
...
numeric array `AssignTo` supports both types int64 and uint64
2018-04-27 07:54:52 -04:00
Anthony Regeda
88c559bbcd
numeric_with_uint64 numeric array supports both types int64 and uint64
2018-04-24 16:31:31 +03:00
Jack Christensen
1fbd6977e1
Use json instead of jsonb for PG 9.3 compat.
2018-04-14 10:02:08 -05:00
Jack Christensen
8e9b095ce0
Merge pull request #410 from jbowens/acquireconn
...
stdlib: allow nested database/sql/driver.Drivers
2018-04-14 10:33:26 -04:00
Jack Christensen
5297846239
pgtype.JSON(B).Value now returns []byte
...
Allows scanning jsonb column into *json.RawMessage.
fixes #409
2018-04-14 09:17:56 -05:00
Jackson Owens
14f1f2aa01
stdlib: allow nested database/sql/driver.Drivers
...
database/sql/driver.Driver implementations can be nested, with each
layer adding additional functionality. If pgx/stdlib.Driver is wrapped
in another driver.Driver implementation, AcquireConn will error,
detecting that the *sql.DB's driver is not (directly) pgx.Driver.
It looks like it should be possible to support the current functionality
without requiring that the top-level Driver be pgx/stdlib.Driver, but
it requires using a global map of fakeTxConns instead of a per-Driver
map of fakeTxConns.
Is this reasonable?
2018-04-11 19:31:33 -07:00
Jack Christensen
6556ef67cb
Fix data race in domain handling
2018-04-07 14:26:26 -05:00
Jack Christensen
db7df79e10
Add domain support
...
fixes #407
2018-04-07 14:04:16 -05:00
Jack Christensen
b72ebe050f
Fix fastpath / largeobjects query counting
...
fastpath.Call was not incrementing pendingReadyForQueryCount when it
sent a function call. But it was being decremented when the function
call was finished and the server sent the ready for query message. This
caused pendingReadyForQueryCount to go negative. This meant that any
subsequent activity that depended on ensureConnectionReadyForQuery would
not operate correctly because the connection would be considered ready
before it had read all previous data off the wire.
fixes #403
2018-03-31 11:11:48 -05:00
Jack Christensen
8ce528626e
Merge pull request #400 from cheapRoc/f-zerolog
...
Add zerolog logging adapter
2018-03-24 10:18:36 -05:00
Justin Reagor
5819bc8fb1
Small typo
2018-03-21 00:25:14 -04:00
Justin Reagor
6429fb5bf7
Add github.com/rs/zerolog to Travis
2018-03-20 15:48:19 -04:00
Justin Reagor
cb72072f8d
Add zerolog logging adapter
2018-03-19 22:40:13 -04:00
Jack Christensen
b6bdf5f89b
Update changelog
2018-03-17 10:28:34 -05:00
Jack Christensen
cb4431028c
Fix precision loss for test format geometric types
...
fixes #399
2018-03-17 10:26:03 -05:00
Jack Christensen
a07b87eb8b
Skip line test of PG 9.3
2018-03-08 08:05:54 -05:00
Jack Christensen
b0c9bbbf71
Update shopspring decimal integration test
...
New version of shopspring/decimal improves precision. This broke a test.
2018-03-08 07:40:25 -05:00
Jack Christensen
b931b56bf6
Document edge case with renamed types
...
fixes #393
2018-03-03 14:09:49 -06:00
Jack Christensen
55ca9db5d5
Skip test based on missing line type
...
Instead of explicit server version checking. Ubuntu installed version
string is not parsable by go-version. e.g.
10.2 (Ubuntu 10.2-1.pgdg16.04+1)
2018-02-16 21:39:19 -06:00
Jack Christensen
606697ffdf
Merge pull request #389 from steampunkcoder/FixStartReplicationSyntaxError
...
Fix syntax error in replication protocol msg issued by StartReplication()
2018-02-05 16:20:27 -06:00
steampunkcoder
cba88a4b7d
Fix syntax error in replication protocol message issued by StartReplication()
...
According to https://www.postgresql.org/docs/9.6/static/protocol-replication.html
pluginArguments should be separated by commas and surrounded by parantheses.
2018-02-05 11:12:55 -08:00
Jack Christensen
8cf92b683d
Update changelog
2018-02-03 11:44:56 -06:00
Jack Christensen
56a5cb4e5d
Merge branch 'sean--scheme-agnostic-uri'
2018-02-03 11:44:09 -06:00
Jack Christensen
a487caf45f
Merge branch 'scheme-agnostic-uri' of https://github.com/sean-/pgx into sean--scheme-agnostic-uri
2018-02-03 11:43:46 -06:00
Jack Christensen
6925f8dfe6
Update changelog
2018-02-03 11:21:53 -06:00
Jack Christensen
f911070f68
Add new SSL config to envvar parsing
2018-02-03 11:20:42 -06:00
Jack Christensen
1c32ce5945
Merge branch 'sean--stdlib-tls'
2018-02-03 11:20:23 -06:00
Jack Christensen
29c6e5234d
Merge branch 'stdlib-tls' of https://github.com/sean-/pgx into sean--stdlib-tls
2018-02-03 11:09:59 -06:00
Jack Christensen
52fc785a43
Fix incorrect reuse of Value in Rows.Values()
...
fixes #386
2018-02-03 11:04:49 -06:00
Sean Chittenden
6cfb436397
Parse URI-encoded connection strings as URIs.
...
CockroachDB is frequently referenced as: `cockroachdb://` as its
scheme. Be scheme name agnostic.
2018-02-02 16:19:58 -08:00
Sean Chittenden
6a4303120f
Only read in TLS certs when the key and cert are present.
2018-02-02 08:37:23 -08:00
Sean Chittenden
f0dc593c2f
Only initialize the CA if the path is not an empty string.
2018-02-02 08:24:41 -08:00
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