Commit Graph

419 Commits (f672dd273262f2bf9a5c587e3176b30e519cbfbf)

Author SHA1 Message Date
Jack Christensen f672dd2732 Remove mustPrepare from tests
Now that Query/QueryRow always prepares statements when given SQL
text there is no need to test raw SQL and prepared statements of
the same query.
2015-09-03 13:39:28 -05:00
Jack Christensen e69d2bba26 Release 2.6.0 / update changelog 2015-09-03 13:03:52 -05:00
Jack Christensen fd39261551 Use binary transcoding for inet/cidr
fixes #87
2015-09-03 11:39:32 -05:00
Jack Christensen 9af068add0 Add cidr support 2015-09-03 09:42:01 -05:00
Jack Christensen d494f83cd1 Add inet support 2015-09-03 09:33:19 -05:00
Samuel Stauffer a56e35ad0a Support decoding of TimestampOid in stdlib driver 2015-08-25 17:33:17 -07:00
Jack Christensen a0c76b897c Fix doc typos 2015-08-21 13:50:31 -05:00
Jack Christensen c44cbb12ab Add sslmode note for ParseDSN 2015-08-21 13:50:06 -05:00
Rick Snyder 6413491657 Add support for specifying sslmode in connection strings
Add tests for sslmode parameter when calling ParseURI.  Fix existing tests to work since default sslmode is 'prefer'

Make sure we default to prefer if sslmode is not provided in ParseDSN

Fix existing tests for ParseDSN to expect TLS configuration for prefer since prefer is the default sslmode; also, add tests for ParseDSN when specifying sslmode parameter on connection string
2015-08-19 11:33:12 -04:00
Jack Christensen db5300358a Allow ConnPool to have MaxConnections of 1 2015-05-25 09:54:56 -05:00
Jack Christensen 07a11abc07 Add basic PGSSLMODE support to ParseEnvLibpq 2015-05-23 13:49:26 -05:00
Jack Christensen 51d6d1a3a6 Add ParseEnvLibpq with support for basic envvars 2015-05-23 12:46:36 -05:00
Jack Christensen dd9d960ba3 Add fallback TLS ConnConfig option
This is in preparation for supporting libpq style SSL options.
2015-05-23 11:57:36 -05:00
Jack Christensen 0c0a426d18 Add named error for server refused TLS 2015-05-15 19:21:59 -05:00
Jack Christensen 5bb7f64dac Add more error fields to PgError 2015-05-01 18:06:17 -05:00
Lewis Marshall 784d12cbbc Support using a custom dialer
For example I may want to use a dialer which retries transient network
errors (e.g. DNS issues).

Signed-off-by: Lewis Marshall <lewis@lmars.net>
2015-04-18 22:42:55 +01:00
Jack Christensen d46a762159 Release 2.5.0 / update changelog 2015-04-15 08:12:17 -05:00
Jack Christensen acdf5acc5a Add test for stdlib query nil 2015-04-15 08:01:26 -05:00
Blaž Hrastnik 7f2cbbfcfd Support nil driver.Value 2015-04-13 14:33:16 +09:00
Jack Christensen 879ca97228 Fix Scanner that does not read entire value 2015-04-09 17:46:58 -05:00
Laurent Debacker e511c267de Unit test demonstrating infinite loop
Hi, I have just created a unit test demonstrating an infinite loop during cleanup in a defered function. The CPU will just sit at 100% use. I know this is a special case, but it's would be nice if a buggy Scanner doesn't make cleanup functions like rows.Close run indefinitely. Sadly, I'm not sure how to fix/improve this.
2015-04-09 22:10:55 +02:00
Jack Christensen 654508050c Add failing test for empty array from debackerl 2015-04-08 16:53:08 -05:00
Laurent Debacker bc7ca55b45 Fix decoding of ARRAY[]::text[]
The original version could not decode ARRAY[]::text[]. When an empty array was detected, decode1dArrayHeader was not reading enough values off the socket, and subsequent values were incorrectly read.
2015-04-08 16:53:08 -05:00
Jack Christensen 82a2d9de96 Merge pull request #76 from deoxxa/add-parsedsn
add ParseDSN function
2015-04-08 14:54:40 -05:00
Jack Christensen 3dcb2fcbfc Add test for empty array between other values 2015-04-08 14:50:57 -05:00
Jack Christensen 92d38b7f37 Add test for empty array decoding 2015-04-08 14:46:14 -05:00
deoxxa 36d1a58b42 add tests for ParseDSN 2015-04-08 14:55:15 +10:00
deoxxa 7e2886c576 add ParseDSN function 2015-04-08 14:50:56 +10:00
Jack Christensen 472929b247 Update README with more advantages of pgx
refs #73
2015-04-02 19:53:40 -05:00
Jack Christensen c45bb2cfa8 Remove unused text format decoders 2015-04-02 18:06:59 -05:00
Jack Christensen fc484ab5fd Allow NullTime to work with timestamp 2015-03-27 18:14:36 -04:00
Jack Christensen 28ef19702f Detect too many parameters on Prepare
refs #65
2015-03-14 18:58:09 -05:00
Jack Christensen cf674c6958 Enable travis errors on PG 9.0 and 9.1 2015-02-13 13:43:39 -06:00
Jack Christensen 651d976ea6 Test should not use type that does not exist in PG 9.0 2015-02-13 13:42:18 -06:00
Jack Christensen 77e61ef1bd Merge pull request #62 from flynn/travis
Add Travis CI configuration
2015-02-07 11:06:52 -06:00
Jonathan Rudenberg cf41a6e587 Add Travis CI configuration 2015-01-31 14:29:50 -08:00
Blake Gentry 3ec870dc3c combine two small reads into one
There's no need to read 1 byte and then immediately read 4 more, rather
than just reading 5 bytes to begin with. Also, with this change rxMsg is
no longer swallowing an error from ReadByte.
2015-01-11 16:47:31 -08:00
Jack Christensen 1e92e5afe6 Merge pull request #59 from flynn/large-objects
Minor docs fixes for large objects
2015-01-02 19:05:46 -06:00
Jonathan Rudenberg 10655944aa Minor docs fixes for large objects 2015-01-02 17:05:51 -05:00
Jack Christensen b5eb23da7b Merge pull request #57 from flynn/large-objects
Implement large object support
2015-01-02 14:18:36 -06:00
Jonathan Rudenberg 0176e3ccc0 Implement large object support
This patch implements large object support as described in
http://www.postgresql.org/docs/current/static/largeobjects.html
2015-01-01 22:01:01 -05:00
Jack Christensen daf2efa313 Tweak handling of reading null as raw bytes.
* NULL maps to nil not empty slice
* Handle NULL in Scan not ReadBytes
2014-12-23 21:58:48 -06:00
Jack Christensen e616eb0783 Merge branch 'nullbytes' of https://github.com/karlseguin/pgx into karlseguin-nullbytes 2014-12-23 21:52:45 -06:00
Karl Seguin edc8216aa2 handle this not like an idiot 2014-12-24 09:16:13 +07:00
Karl Seguin 8d116336c3 added failing test, not sure how to fix it yet 2014-12-24 09:06:06 +07:00
Jack Christensen 9c89869134 Update changelog 2014-12-23 18:19:22 -06:00
Jack Christensen d77e599ce6 Add timestamptz[] support 2014-12-23 18:17:39 -06:00
Jack Christensen 191c37dfa6 Values supports timestamp[] 2014-12-23 17:52:33 -06:00
Jack Christensen 8743d96be4 Fix swapped test names 2014-12-23 17:33:38 -06:00
Jack Christensen 8b7af157a3 Merge branch 'karlseguin-time_array' 2014-12-23 17:30:48 -06:00