2
0
Commit Graph

608 Commits

Author SHA1 Message Date
Jack Christensen 74172bd01a Merge branch 'manniwood-add-xid' 2016-09-12 08:56:06 -05:00
Manni Wood cba72d47c5 Fixes typo 2016-09-10 19:44:33 -04:00
Manni Wood 7adabc9b93 Improves documentation of Xid type 2016-09-05 10:59:24 -04:00
Manni Wood 30d16e722e Merge branch 'master' into add-xid 2016-09-05 10:24:10 -04:00
Jack Christensen 0c7277fe15 Update changelog 2016-09-05 08:08:39 -05:00
Manni Wood 074bcd7139 Adds docs for Oid type. 2016-09-03 18:30:36 -04:00
Manni Wood 99bfc154f0 Makes Oid casting consistent
Also fixes uint32 encoding in a few places.
2016-09-03 18:19:33 -04:00
Manni Wood 1061b1f978 Adds Xid type 2016-09-03 18:04:55 -04:00
Manni Wood 7dbfd4bf4b Switches oid to uint32 2016-09-01 22:55:18 -04:00
Jack Christensen c187a779c0 Merge pull request #173 from mhamrle/cleanup
Cleanups
2016-08-31 07:53:30 -05:00
Martin Hamrle 9f6b99e332 Cleanups
Cleanups suggested by gometalinter tools.
2016-08-30 20:05:44 +02:00
Jack Christensen 2508faa9ce Release 2.9.0 2016-08-26 07:39:15 -05:00
Jack Christensen 32862d9bf8 Update versioning policy 2016-08-26 07:38:12 -05:00
Jack Christensen 1c89f2f680 Merge pull request #169 from manniwood/update-test-doc
Updates test instructions in README
2016-08-26 07:20:18 -05:00
Manni Wood 9ce81d7ab7 Updates test instructions in README
Lets the user know about extra packages
that need to be installed for the tests to run,
and that connection_settings_test.go.example
has been renamed to conn_config_test.go.example.
2016-08-21 14:22:32 -04:00
Jack Christensen b2dd61515c Merge pull request #168 from mostafah/fix-minor-typo
Fix minor documentation mistake: s/slice/null/
2016-08-10 22:39:41 -05:00
Mostafa Hajizadeh 7a2738f9f2 Fix minor documentation mistake: s/slice/null/ 2016-08-11 08:06:58 +04:30
Jack Christensen cfb0304ab0 Fix typos 2016-08-10 16:28:29 -05:00
Jack Christensen 5f7d01778e Add CopyTo to support PostgreSQL copy protocol
fixes #102
2016-08-10 16:27:44 -05:00
Jack Christensen bb73d84279 Remove unnecessary buf from msgReader
Replace with bufio.Reader.Peek for short sizes
2016-08-08 17:01:01 -05:00
Jack Christensen 7e43eca3d3 Remove one allocation per pool query 2016-08-08 16:31:01 -05:00
Jack Christensen 09f1ca5b00 Fix LogLevelFromString doc formatting 2016-08-02 14:53:10 -05:00
Jack Christensen b3eed3cce0 Merge pull request #167 from Michael77/patch-1
Update README.md
2016-08-01 13:19:42 -05:00
Michael77 0a7d8f738e Update README.md 2016-08-01 08:40:50 -07:00
Jack Christensen 558d5550cf Update changelog for ConnPool.Acquire Dialer timeout improvements 2016-07-15 14:51:40 -05:00
Jack Christensen ecf158b086 Track and check number of in-progress acquires 2016-07-15 14:46:50 -05:00
Jack Christensen 7477020000 Test ConnPool non-blocking connections locally
- instead of hitting microsoft.com
2016-07-15 14:45:02 -05:00
Jack Christensen ff5b4f67c3 Merge branch 'Non_blocking_ConnPool_Acquire__jackc' of git://github.com/konstantin-dzreev/pgx into konstantin-dzreev-Non_blocking_ConnPool_Acquire__jackc 2016-07-12 07:40:22 -05:00
Jack Christensen 1a4be31e7a Fix Rows.Values with binary varchar
fixes #161
2016-07-07 08:03:26 -05:00
Jack Christensen 32184fcdaf Update changelog 2016-07-07 07:51:26 -05:00
Jack Christensen a8a990f51b Add test for stdlib query not being logged properly 2016-07-07 07:50:34 -05:00
Jack Christensen f54bfbbdb3 Merge branch 'krzysztofdrys-master' 2016-07-07 07:45:54 -05:00
Jack Christensen 4fc92356df Merge branch 'master' of git://github.com/krzysztofdrys/pgx into krzysztofdrys-master 2016-07-07 07:45:39 -05:00
konstantin b96777edf3 Merge branch 'Non_blocking_ConnPool_Acquire' into tmp
Conflicts:
	conn_pool.go
2016-07-06 16:58:04 +03:00
konstantin 809be4bfcb Make ConnPool.Acquire() non blocking, feedback 2016-07-06 16:22:59 +03:00
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
konstantin 7f9373c7c0 Make ConnPool.Acquire() non blocking
When there was an issue with DB server ConnPool.Acquire() used to block
until it heard back from the server or its OpenTimeout hit. If we had
OpenTimeout set to 3 secs, and there were X go routines trying to aquire a
connection in parallel, the very last go routine would receive timeout
error in X*OpenTimeout seconds because of the blocking nature of the
ConnPool.Acquire().

With this commit ConnPool.Acquire() is not blocking any more, and all
X requests will take about 1*OpenTimeout secs to fail.
2016-07-05 18:04:41 +03:00
Krzysztof Dryś ed6ee27a22 Copy sql query from prepared statement to rows.
This enables proper logging of sql query when using stdlib.
2016-06-28 11:08:38 +02: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