Jack Christensen
c668caeb31
Fix error message in tests.
2015-10-16 14:15:26 -05:00
Jack Christensen
7dfdc92855
Rows.Values supports oid type
2015-10-07 08:00:43 -05:00
Jack Christensen and Jake Worth
c726a51450
Add inet[] and cidr[] support
2015-09-29 13:23:26 -05:00
Jack Christensen
36fb7a3aec
Use Skip when skipping tests rather than just return
2015-09-26 13:29:40 -05:00
Jack Christensen
20cf4f87ab
Remove notifications when releasing Conn to Pool
2015-09-26 13:24:21 -05:00
Jack Christensen
3857bab52e
Add query close early to pool stress test
2015-09-26 13:19:00 -05:00
Jack Christensen
e315754b1f
Add stress test to connection pool
2015-09-26 13:12:53 -05:00
Jack Christensen
4987d5425e
Fix JSON encoding of *string
2015-09-21 13:40:47 -05:00
Jack Christensen
1b90ad1051
Update changelog
2015-09-21 08:20:30 -05:00
Jack Christensen
ca16a4c98f
Unlisten tweaks
...
- Use unlisten * when releasing connection with listeners to pool
- Only unlisten on releasing connection to pool when necessary
- Remove Unlisten("") as was to release all listeners
2015-09-21 08:18:10 -05:00
Jack Christensen
9fd5c7e6ab
Add test for Unlisten
2015-09-21 08:05:53 -05:00
Joseph Glanville
eb5cadccf9
Track Listen/Unlisten and clear subscriptions on conn release
2015-09-21 07:56:45 -05:00
Jack Christensen
516c88fde3
Update changelog
2015-09-21 07:54:22 -05:00
Jack Christensen
90b2e0acb7
Add additional testing around listen/notify
2015-09-17 17:40:04 -05:00
Jack Christensen
86837e5576
Add guards against usage of busy connection
2015-09-16 10:22:16 -05:00
Jack Christensen
51407590eb
Add LogLevelFromString func
2015-09-16 09:21:51 -05:00
Jack Christensen
23c48c2f87
Add trace logging
2015-09-16 08:40:01 -05:00
Jack Christensen
a1aa06c934
More efficient logging with log levels
2015-09-16 08:20:51 -05:00
Jack Christensen
a2e078597b
Add logging to rxMsg
...
Also benchmark what a log call costs
2015-09-14 10:25:48 -05:00
Jack Christensen
057da9f8e7
Add benchmarks for logging
2015-09-14 10:01:05 -05:00
Jack Christensen
3316ed2ff4
Update changelog
2015-09-12 19:42:15 -05:00
Jack Christensen
93aa2b2e80
ConnPool.Begin retry logic checks connection IsAlive
...
ErrDeadConn is returned when calling an already dead connection. But the initial failure returns the real error. So we check for IsAlive instead of ErrDeadConn.
Added test for ConnPool.Begin retry logic.
2015-09-12 19:39:37 -05:00
Jack Christensen
6e5fa60c4c
Fix cases where net conn write failure was not marking connection as dead
...
Also added loop to run these timing sensitive tests multiple times.
2015-09-12 19:32:55 -05:00
Jack Christensen
bc4742b80a
DRY ConnPool Begin and BeginIso
2015-09-12 19:12:55 -05:00
Jack Christensen
6ac98ef613
Add test for ConnPool.Begin retry
...
Also fix bug where conn is not released on non ErrDeadConn error
returned from Conn.Begin
2015-09-12 19:10:55 -05:00
Joseph Glanville
4868929ff1
ConnPool.Begin/BeginIso will retry if they Acquire a dead connection
2015-09-11 03:05:43 +10:00
Jack Christensen
8b296b9d58
Encode from net.IP to inet and cidr
2015-09-09 18:49:20 -05:00
Jack Christensen
ee7d621528
Update changelog
2015-09-09 18:31:19 -05:00
Jack Christensen
4ff46becfc
Generalize pointer to string uuid transcoding to any non-varchar/text type
2015-09-09 18:07:05 -05:00
Joseph Glanville
2184ffb5e9
Add support for encoding to UUID from string types
2015-09-10 00:58:51 +10:00
Jack Christensen
b1d721c487
Merge pull request #91 from titanous/patch-1
...
Fix feature attribution in CHANGELOG
2015-09-08 13:13:59 -05:00
Jonathan Rudenberg
53967c704a
Fix feature attribution in CHANGELOG
2015-09-08 17:43:41 +00:00
Jack Christensen
e4f401f6ec
Add documentation for pointer to pointer null mapping
2015-09-08 12:15:16 -05:00
Jack Christensen
73135865e7
Add benchmarks for NullX vs pointer to pointer
2015-09-08 12:08:20 -05:00
Jonathan Rudenberg
272262536b
Add support for pointers to pointers
...
Using types like **string allows the inner pointer to be nil’ed out,
avoiding the need for NullX types.
Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>
2015-09-08 11:52:58 -05:00
Jack Christensen
4ebb0508b6
Encode dates in binary format
...
- Also allow NullTime to handle dates
2015-09-08 11:51:28 -05:00
Jack Christensen
65f5b33f3f
Fake example if PostgreSQL server too old for JSON
2015-09-04 14:10:18 -05:00
Jack Christensen
5ea6b04624
Add docs and example for JSON
2015-09-04 14:00:21 -05:00
Jack Christensen
fff5b9759b
Add tests for other types of JSON objects
2015-09-04 13:40:59 -05:00
Jack Christensen
9d200733b9
Merge common JSON and JSONB
2015-09-04 11:04:51 -05:00
Jack Christensen
7383e240d4
Skip JSON/JSONB tests for older PostgreSQL servers
2015-09-04 09:13:15 -05:00
Joseph Glanville
0013733535
Add JSON/JSONB support
2015-09-04 18:15:46 +10:00
Jack Christensen
fee3679cb9
Note inet and cidr support in README.md
2015-09-03 13:48:18 -05:00
Jack Christensen
063b0062b5
Use map literal for DefaultTypeFormats
2015-09-03 13:44:10 -05:00
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