Merge branch 'master' into add-char

pull/185/head
Manni Wood 2016-09-24 01:11:16 -04:00
commit 3e6ecda14d
3 changed files with 11 additions and 6 deletions

View File

@ -1,8 +1,8 @@
language: go
go:
- 1.6.2
- 1.5.2
- 1.7.1
- 1.6.3
- tip
# Derived from https://github.com/lib/pq/blob/master/.travis.yml
@ -37,6 +37,11 @@ before_script:
- psql -U postgres -c "create user pgx_md5 SUPERUSER PASSWORD 'secret'"
- psql -U postgres -c "create user pgx_pw SUPERUSER PASSWORD 'secret'"
install:
- go get -u github.com/shopspring/decimal
- go get -u gopkg.in/inconshreveable/log15.v2
- go get -u github.com/jackc/fake
script:
- go test -v -race -short ./...

View File

@ -366,12 +366,12 @@ func TestPoolAcquireAndReleaseCycleAutoConnect(t *testing.T) {
if err != nil {
t.Fatalf("Unable to Acquire: %v", err)
}
rows, _ := c.Query("select 1")
rows, _ := c.Query("select 1, pg_sleep(0.02)")
rows.Close()
pool.Release(c)
}
for i := 0; i < 1000; i++ {
for i := 0; i < 10; i++ {
doSomething()
}
@ -381,7 +381,7 @@ func TestPoolAcquireAndReleaseCycleAutoConnect(t *testing.T) {
}
var wg sync.WaitGroup
for i := 0; i < 1000; i++ {
for i := 0; i < 10; i++ {
wg.Add(1)
go func() {
defer wg.Done()

View File

@ -1282,7 +1282,7 @@ func TestConnQueryDatabaseSQLDriverValuer(t *testing.T) {
}
var num decimal.Decimal
err = conn.QueryRow("select $1::decimal", expected).Scan(&num)
err = conn.QueryRow("select $1::decimal", &expected).Scan(&num)
if err != nil {
t.Fatalf("Scan failed: %v", err)
}