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
Karl Seguin
43e06f9c62
handle null bytes
2014-12-23 23:10:36 +07:00
Karl Seguin
109b55f9de
support decoding of []time.Time and []bool
2014-12-21 14:35:38 +07:00
Karl Seguin
be663f648c
refactor common code for encoding array header
2014-12-21 13:40:45 +07:00
Karl Seguin
67292290cf
support for inserting []time.Time into timestamp[] columns
2014-12-21 13:35:39 +07:00
Karl Seguin
d1b42d1c8e
support inserting into bool[]
2014-12-21 13:01:24 +07:00
Jack Christensen
3c61b16776
Fix crash reading value after empty array
...
fixes #51
2014-12-19 08:25:33 -06:00
Jack Christensen
c195d9bb96
Remove unsafe package from float/int conversions
2014-11-21 13:56:07 -06:00
Jack Christensen
721cb1fd20
Update contributions
2014-11-17 20:40:37 -06:00
Jack Christensen
79818c2557
Merge pull request #49 from karlseguin/mem1
...
reduce unecessary memory allocation
2014-11-17 20:36:57 -06:00
Jack Christensen
57df9258bd
Merge pull request #48 from karlseguin/94test
...
select; is valid in 9.4 (the beta anyways)
2014-11-17 20:33:53 -06:00
Jack Christensen
2e952f0ebf
Merge pull request #47 from karlseguin/quickaffected
...
Use LastIndex instead of Split
2014-11-17 20:32:07 -06:00
Karl Seguin
a8f5ce12c5
Trying to reduce memory allocation. logQueryArgs is called even when
...
using the default discardLogger. This allocates quite a bit of memory.
Created a default dlogger instance and avoid logging code when that's our
logger. I couldn't think of a better implementation without touching the
Logger interface.
On 100 000 inserts, this brought the allocation down to 58MB from 122MB.
It should also result in some small performance gains.
2014-11-18 07:53:33 +07:00
Karl Seguin
e5b2fbd819
select; is valid in 9.4. This causes the two tests to exec successfully when
...
we're trying to get a syntax error.
2014-11-17 21:21:08 +07:00
Karl Seguin
04b54f03a5
Use LastIndex instead of Split for better performance getting the number of rows affected from CommandTag
2014-11-16 12:43:47 +07:00
Jack Christensen
d857f18454
Update changelog
2014-11-12 08:15:40 -06:00
Jack Christensen
d2ce556450
ConnPool no longer creates connections just to release them.
2014-11-12 08:11:33 -06:00
Jack Christensen
efea92e8be
Fix connection pool close
...
Close should close successfully acquired connections, not failures.
fixes #45
2014-11-11 17:59:13 -06:00
Jack Christensen
95e9e0b308
Add example of listen/notify support
...
refs #43
2014-11-01 10:45:18 -05:00