Jack Christensen
71d8b5b438
Encode / decode named types with compatible underlying type
...
Handle string, int, int8, int16, int32, int64, uint, uint8, uint16,
uint32, uint64.
2016-07-05 18:01:44 -05:00
Jack Christensen
30cb421551
Add basic record to []interface{} decoding
...
refs #155
2016-06-21 15:00:47 -05:00
Jack Christensen
9d284da48e
Merge pull request #153 from achiku/fix-stdlib-error-message
...
Fix error message in stdlib
2016-06-06 09:16:07 -05:00
Akira Chiku
d05661b5ee
Fix error message
2016-06-06 22:54:33 +09:00
Jack Christensen
11e1f70c32
Merge branch 'anil1596-master'
2016-06-01 08:03:47 -05:00
anil1596
db8228ca6e
Merge branch '32-bit_overflow_error_fix'
2016-06-01 15:48:56 +05:30
anil1596
16bf1a7cac
In func encodeUInt(), case Int8Oid:, changed value to int64(value) and math.MaxInt64 to int64(math.MaxInt64)
2016-06-01 15:42:00 +05:30
anil1596
e334907105
In func encodeUInt(), case Int8Oid:, changed value to int64(value) and math.MaxInt64 to int64(math.MaxInt64)
2016-06-01 13:00:49 +05:30
Jack Christensen
8db0a774d7
Update changelog
2016-05-20 09:34:53 -05:00
Jack Christensen
40f00f4a82
Pass PrepareEx opts as pointer and DRY implementation
2016-05-20 08:30:10 -05:00
Jack Christensen
7954a36b2d
Tweak Prepare docs
2016-05-20 08:16:28 -05:00
Jack Christensen
b06560aa03
Rename Preparex to PrepareEx
2016-05-20 08:14:56 -05:00
William King
a0d005a993
Doc update
2016-05-18 15:08:09 -07:00
William King
682e688c5b
Tx prepare/preparex
2016-05-18 15:05:32 -07:00
William King
2ba5bb405b
Slight doc update
2016-05-18 13:27:22 -07:00
William King
e417cc2f15
Preparex
2016-05-18 13:15:15 -07:00
Jack Christensen
90f22c1717
Don't share inet constant memory between connections
2016-05-12 08:00:53 -05:00
Jack Christensen
a488fe026f
Every Conn in a ConnPool gets its own PgTypes
...
Rather than sharing which could allow data races.
2016-05-12 07:51:53 -05:00
Jack Christensen
f86340a92c
Merge branch 'j16r-lazy_load_inet_constants'
2016-05-12 07:44:39 -05:00
John Barker
a282d9df90
Cache connection properties in the pool
...
This is a quick attempt to improve connection startup time by caching
the properties that are loaded when a connection is ready in the pool,
so that further connections don't incur this cost.
I'm not entirely convinced by the interface here, perhaps these 3 items
could live in their own type and that be passed around for clearer code,
but the idea works well.
2016-05-10 18:34:26 -04:00
Jack Christensen
d9fb1351fb
Merge branch 'j16r-shrink_pg_type_query_on_connect'
2016-05-10 16:30:11 -05:00
John Barker
3ac09ce728
Reduce the set of types loaded on connect [ Fixes #140 ]
...
Modify the pg_types query so that it does not load the table array types
that are created when new tables are created.
2016-05-10 14:10:51 -04:00
Jack Christensen
7323d3f5a7
Encode/decode [][]byte to/from bytea[]
...
fixes #139
2016-04-30 19:07:29 -05:00
Jack Christensen
be45d46b37
Update changelog
2016-04-30 14:52:21 -05:00
Jack Christensen
44f4fe0a20
Update travis to use 1.6.2
2016-04-30 14:40:12 -05:00
Jack Christensen
10cea2ec20
Use bufio.Reader.Discard instead of CopyN to ioutil.Discard
2016-04-30 14:11:08 -05:00
Jack Christensen
b596fa3455
Avoid allocation for WriteBuf on query
2016-04-30 13:32:19 -05:00
Jack Christensen
9288322a4f
Avoid two memory allocations per query
...
rows can get log and shouldLog from conn instead of needing copied
to self.
2016-04-30 13:06:59 -05:00
Jack Christensen
932a4d6533
Avoid pointless recursive call
2016-04-30 12:58:36 -05:00
Jack Christensen
6e2cee6294
Prevent every row scan from causing a malloc
2016-04-30 12:54:16 -05:00
Jack Christensen
e3859aa03e
Test should not panic if no err
2016-04-30 12:43:18 -05:00
Jack Christensen
e5ec5851e5
Reduce allocations for row objects
2016-04-30 12:22:36 -05:00
Jack Christensen
acd9c01bd6
Fix ConnPool.Deallocate
2016-04-30 12:22:26 -05:00
Jack Christensen
88acc7e19f
Encode and decode between all integer types
...
fixes #138
2016-04-28 15:28:38 -05:00
Jack Christensen
623ba1eeb1
Add scan to uint16
...
refs #138
2016-04-27 08:26:59 -05:00
Jack Christensen
d62da82ab1
Support decoding inet/cidr to net.IP
...
fixes #137
2016-04-22 16:00:11 -05:00
Jack Christensen
5d6d01c41b
Merge pull request #135 from konstantin-dzreev/Add_AcquireTimeout_support
...
Add AcquireTimeout support
2016-04-12 09:09:36 -05:00
konstantin
d4258bb47f
Add AcquireTimeout support
2016-04-11 13:35:16 -07:00
Jack Christensen
04e9fbcc55
Fix some golint errors
...
- Add comments
- Rename variables
- Remove unnecessary "else"
2016-03-29 15:18:09 -05:00
Jack Christensen
129ff96567
TestFatalRxError expects multiple error types
2016-03-24 16:22:27 -05:00
Jack Christensen
9edd770c70
Release 2.8.1
v2.8.1
2016-03-24 15:38:55 -05:00
Jack Christensen
9ce1b2b16e
Fix Listen/Unlisten with special characters
...
fixes #132
2016-03-24 15:26:44 -05:00
Jack Christensen
b8486d6749
Fix Tx.status not being set on error on Commit
...
fixes #131
2016-03-24 15:11:04 -05:00
Jack Christensen
7947ab561f
Update changelog
2016-03-24 14:23:10 -05:00
Jack Christensen
94052ea940
Rows.Scan can ignore column with nil
...
fixes #130
2016-03-24 14:22:16 -05:00
Jack Christensen
4b843c0a26
Update travis build matrix
...
Use Go 1.6.0
Add PostgreSQL 9.5
Remove PostgreSQL 9.0 as it is no longer a supported version
http://www.postgresql.org/support/versioning/
2016-03-23 16:57:59 -05:00
Jack Christensen
05790e007c
Fix 32-bit GOARCH
...
fixes #129
2016-03-23 16:57:31 -05:00
Jack Christensen
410a7646bc
Release v2.8.0
v2.8.0
2016-03-18 15:22:35 -05:00
Jack Christensen
0cfdb8bee0
Update changelog
2016-03-18 15:10:32 -05:00
m1kc (Max Musatov)
aac1fd86a4
[]uint16, []uint32, and []uint64 encoding and decoding.
2016-03-17 12:14:48 +03:00