1274 Commits

Author SHA1 Message Date
Jack Christensen
381a1e8156
Merge pull request #471 from MOZGIII/checked-out-connections
Added CheckedOutConnections for ConnPoolStat
2018-10-29 17:27:26 -05:00
Jack Christensen
c047f4dd94
Merge pull request #470 from blind-oracle/master
Replication: Add NOEXPORT_SNAPSHOT, GetConnInfo() function
2018-10-29 17:26:01 -05:00
MOZGIII
e4632da034
Added CheckedOutConnections for ConnPoolStat
Closes #468
2018-10-23 14:41:21 +03:00
Igor Novgorodov
04bead7c8a Replication: add NOEXPORT_SNAPSHOT, add GetConnInfo() func 2018-10-23 10:50:34 +02:00
Igor Novgorodov
e49735a0c4
Merge pull request #1 from jackc/master
Merge
2018-10-23 10:31:18 +02:00
Jack Christensen
20eaa7963b
Merge pull request #463 from fpetrini/copy_from_reader
Handle (n > 0 and err == io.EOF) in CopyFromReader
2018-10-10 07:56:47 -05:00
Fredrik Petrini
c6cec81e2c Fix: Handle (n > 0 and err == io.EOF) in CopyFromReader as per io.Reader documentation 2018-10-08 11:39:18 +02:00
Jack Christensen
0b00887bf8
Merge pull request #461 from nitsky/master
add float types to database/sql ColumnType ScanType()
2018-09-22 15:34:18 -05:00
David Yamnitsky
81dbdeea7a
add float types to database/sql ColumnType ScanType() 2018-09-22 15:15:15 -04:00
Jack Christensen
897e90f353 Type modifier should be int32 not uint32 2018-09-22 07:43:18 -05:00
Jack Christensen
1b754b5f70
Merge pull request #458 from GeertJohan/patch-1
Fix undefined identifiers in example
2018-09-22 07:21:15 -05:00
Geert-Johan Riemer
8efdbc9345
Update doc.go
Fix undefined identifiers in example
2018-09-17 17:45:08 +02:00
Jack Christensen
655313b801
Merge pull request #456 from tehbrut/hotfix/context_leak
Call context.WithTimeout cancel function
2018-09-15 09:47:02 -05:00
Jack Christensen
25098d56f9
Merge pull request #455 from regeda/pool-queue-vs-stack
Pool should work like a queue
2018-09-15 09:31:52 -05:00
Valery Krivchikov
1f054a77ea fix new variables on left side 2018-09-15 14:50:17 +03:00
Valery Krivchikov
0468c97a7e Fix undefined cancel 2018-09-15 14:27:29 +03:00
Valery Krivchikov
c844a2402b Call context.WithTimeout cancel function 2018-09-15 13:23:09 +03:00
Anthony Regeda
00d38a68a8
pool-queue-vs-stack pool should work like a queue to traverse all possible connections 2018-09-09 23:22:19 +03:00
Jack Christensen
e44f0f24c4
Merge pull request #454 from regeda/macaddr-array
macaddr array is introduced
2018-09-01 22:46:13 -04:00
Jack Christensen
5deea5b971 Convert driver.Valuer's earlier in bind path
fixes #449
2018-09-01 21:37:16 -05:00
Jack Christensen
302c74f214 Fix: do not silently ignore assign NULL to *string
AssignTo can only assign NULL to a **string. Previous code tried to
assign nil to a *string, which did nothing. Correct behavior is to
detect this as an error.
2018-09-01 18:40:42 -05:00
Anthony Regeda
b0702cf2b1
macaddr-array macaddr array is introduced 2018-09-01 16:06:20 +03:00
Jack Christensen
aa561b8f3c
Merge pull request #438 from ikitiki/text-copy
Add CopyFromReader and CopyToWriter methods
2018-08-11 09:25:36 -05:00
Murat Kabilov
4e9a696434 addressing the comments
add copy methods to the Tx struct
2018-08-07 23:44:02 +03:00
Jack Christensen
89f1e6ac72 Update changelog v3.2.0 2018-08-07 09:28:28 -05:00
Murat Kabilov
5315995dfa Add *Conn. CopyFromTextual, CopyToTextual, which use textual format for copying data 2018-07-31 08:57:53 +02:00
Jack Christensen
93ee40e691
Merge pull request #436 from ikitiki/fix-config-merge
Mind PreferSimpleProtocol parameter in the config Merge method
2018-07-24 09:53:07 -05:00
Murat Kabilov
d9f21d02a5 mind PreferSimpleProtocol parameter in the config Merge method 2018-07-24 16:03:26 +02:00
Jack Christensen
b8832c26d4 Fix go vet issue 2018-07-14 11:49:48 -05:00
Jack Christensen
20c02acd63 Fix deadlock when CopyFromSource panics
fixes #433
2018-07-14 11:26:09 -05:00
Jack Christensen
3cbe92ebb5 Merge branch 'james-lawrence-implement-opendb' 2018-07-14 09:58:35 -05:00
Jack Christensen
0a483bad9d Merge branch 'implement-opendb' of https://github.com/james-lawrence/pgx into james-lawrence-implement-opendb 2018-07-14 09:57:49 -05:00
Jack Christensen
39bbc98d99 Do not use same tls.Config for fallback in test 2018-06-08 15:19:56 -05:00
Jack Christensen
31d6f038d3 Merge branch 'dvic-improve-decode-error-msg' 2018-06-08 15:16:41 -05:00
Jack Christensen
368d06ece1 Merge branch 'improve-decode-error-msg' of https://github.com/dvic/pgx into dvic-improve-decode-error-msg 2018-06-08 15:16:09 -05:00
Jack Christensen
7b6f0ffc8c Fix race in TLS tests 2018-06-08 15:14:45 -05:00
Damir Vandic
fa045b7a4b Add the type of the value in all decode error messages 2018-06-04 21:02:20 +02:00
Jack Christensen
8707449219 Merge branch 'tarikdemirci-master' 2018-05-17 16:45:46 -05:00
Jack Christensen
a6ac63930a Merge branch 'master' of https://github.com/tarikdemirci/pgx into tarikdemirci-master 2018-05-17 16:45:32 -05:00
Jack Christensen
e04f5443d5 Fix test with formatting directive 2018-05-17 16:45:01 -05:00
Jack Christensen
6044dcbe21 Fix race in TLS test 2018-05-17 16:43:15 -05:00
Tarik Demirci
1149b0f015
Allow setting nil to pgtype.Bool 2018-05-17 12:22:48 +02:00
Jack Christensen
f42b0f65fc Commit and rollbase need not check for failure state 2018-05-12 19:59:12 -05:00
Jack Christensen
f114ec85a1 Allow recovery from failed transaction
rollback to savepoint can recover a failed transaction. Therefore we
shouldn't block any activities while the transaction is broken. Instead
we only have the Tx.Status() method return the information.

refs #421
2018-05-12 19:53:53 -05:00
Jack Christensen
e096a14b3e Return proper error in Tx.CopyFrom when tx has failed 2018-05-12 10:33:42 -05:00
Jack Christensen
7181a0b52c Use Tx.Status() internally catch failed transactions 2018-05-12 10:32:12 -05:00
Jack Christensen
6f1c5cc3e6 Tx.Status handles in transaction error
refs #421
2018-05-12 10:26:25 -05:00
Jack Christensen
26f6ae2c86
Merge pull request #415 from regeda/numeric_with_uint64
numeric array `AssignTo` supports both types int64 and uint64
2018-04-27 07:54:52 -04:00
Anthony Regeda
88c559bbcd
numeric_with_uint64 numeric array supports both types int64 and uint64 2018-04-24 16:31:31 +03:00
Jack Christensen
1fbd6977e1 Use json instead of jsonb for PG 9.3 compat. 2018-04-14 10:02:08 -05:00