-
-
Save bmizerany/04ab93a5ded2b683d3d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Wed Jan 25 15:40:01 on ttys001 | |
Darwin shake.heroku.com 11.2.0 i386 | |
16:22 up 34 days, 20:19, 3 users, load averages: 0.25 0.42 0.36 | |
; cd src/github.com/bmizerany/pq | |
pq.go/ pq2.go/ | |
; cd src/github.com/bmizerany/pq.go/ | |
; ls | |
Makefile all.sh conn_test.go proto | |
README.md conn.go encode.go sql_test.go | |
; | |
; ls | |
Makefile all.sh conn_test.go proto | |
README.md conn.go encode.go sql_test.go | |
; vim con | |
conn.go conn_test.go | |
; | |
; sl | |
-bash: sl: command not found | |
; ls | |
Makefile all.sh conn_test.go proto | |
README.md conn.go encode.go sql_test.go | |
; | |
; cd .. | |
; ls | |
assert aws.go mc.go noeq noeq.go noeqd pat.go pq.go pq2.go | |
; cd | |
; git clone github.com/bradfitz/go-sql-test | |
fatal: Could not switch to 'github.com/bradfitz': No such file or directory | |
; git clone gitgithub.com:bradfitz/go-sql-test | |
Cloning into go-sql-test... | |
ssh: Could not resolve hostname gitgithub.com: nodename nor servname provided, or not known | |
fatal: The remote end hung up unexpectedly | |
; git clone git@github.com:bradfitz/go-sql-test | |
Cloning into go-sql-test... | |
remote: Counting objects: 156, done. | |
remote: Compressing objects: 100% (130/130), done. | |
remote: Total 156 (delta 18), reused 152 (delta 14) | |
Receiving objects: 100% (156/156), 74.19 KiB, done. | |
Resolving deltas: 100% (18/18), done. | |
; cd go-sql-test/ | |
; ls | |
src | |
; | |
; ls | |
src | |
; cd src/ | |
github.com/ sqltest/ | |
; cd src/ | |
github.com/ sqltest/ | |
; ls | |
src | |
; ls | |
src | |
; | |
; ls | |
src | |
; echo $GOPATH | |
/Users/blake | |
; | |
; ls | |
src | |
; export GOPATH=$PWD | |
; go build | |
path "/Users/blake/go-sql-test" not inside a GOPATH | |
path "/Users/blake/go-sql-test" not inside a GOPATH | |
; cd src/ | |
; ls | |
github.com sqltest | |
; go build ./... | |
./github.com/jbarham/gopgsqldriver: import exp/sql | |
package could not be found locally | |
./github.com/mattn/go-sqlite3: import exp/sql | |
package could not be found locally | |
./github.com/mattn/go-sqlite3/example: import exp/sql | |
package could not be found locally | |
./github.com/ziutek/mymysql/godrv: import exp/sql | |
package could not be found locally | |
./github.com/jbarham/gopgsqldriver: import exp/sql | |
package could not be found locally | |
./github.com/mattn/go-sqlite3: import exp/sql | |
package could not be found locally | |
./github.com/mattn/go-sqlite3/example: import exp/sql | |
package could not be found locally | |
./github.com/ziutek/mymysql/godrv: import exp/sql | |
package could not be found locally | |
; far 'exp/sql' 'database/sql' | |
Bareword found where operator expected at -e line 1, near "s/exp/sql/database" | |
syntax error at -e line 1, near "s/exp/sql/database" | |
Execution of -e aborted due to compilation errors. | |
; far 'exp\/sql' 'database\/sql' | |
; | |
; s | |
-bash: s: command not found | |
; git sh | |
master!go-sql-test/src *> s | |
M github.com/jbarham/gopgsqldriver/pgdriver.go | |
M github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
M github.com/mattn/go-sqlite3/example/main.go | |
M github.com/mattn/go-sqlite3/sqlite3.go | |
M github.com/mattn/go-sqlite3/sqlite3_test.go | |
M github.com/ziutek/mymysql/godrv/driver.go | |
M github.com/ziutek/mymysql/godrv/driver_test.go | |
M sqltest/sql_test.go | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> s | |
M github.com/jbarham/gopgsqldriver/pgdriver.go | |
M github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
M github.com/mattn/go-sqlite3/example/main.go | |
M github.com/mattn/go-sqlite3/sqlite3.go | |
M github.com/mattn/go-sqlite3/sqlite3_test.go | |
M github.com/ziutek/mymysql/godrv/driver.go | |
M github.com/ziutek/mymysql/godrv/driver_test.go | |
M sqltest/sql_test.go | |
master!go-sql-test/src *> d | |
diff --git i/src/github.com/jbarham/gopgsqldriver/pgdriver.go w/src/github.com/jbarham/gopgsqldriver/pgdriver.go | |
index 50f8af8..f5d7d6b 100644 | |
--- i/src/github.com/jbarham/gopgsqldriver/pgdriver.go | |
+++ w/src/github.com/jbarham/gopgsqldriver/pgdriver.go | |
@@ -29,8 +29,8 @@ import "C" | |
import ( | |
"encoding/hex" | |
"errors" | |
- "exp/sql" | |
- "exp/sql/driver" | |
+ "database/sql" | |
+ "database/sql/driver" | |
"fmt" | |
"io" | |
"runtime" | |
diff --git i/src/github.com/jbarham/gopgsqldriver/pgdriver_test.go w/src/github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
index ac74f22..ef68781 100644 | |
--- i/src/github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
+++ w/src/github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
@@ -6,7 +6,7 @@ package pgsqldriver | |
import ( | |
"bytes" | |
- "exp/sql" | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> go test ./...' | |
> | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> go test ./... | |
path "/Users/blake/go-sql-test/src/github.com/jbarham/gopgsqldriver" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3/example" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/godrv" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/mysql" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/thrsafe" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/sqltest" not inside a GOPATH | |
no packages to test | |
master!go-sql-test/src *> echo $GOPATH | |
/Users/blake | |
master!go-sql-test/src *> export GOPATH=$PWD | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> go test ./... | |
path "/Users/blake/go-sql-test/src/github.com/jbarham/gopgsqldriver" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3/example" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/godrv" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/mysql" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/thrsafe" not inside a GOPATH | |
path "/Users/blake/go-sql-test/src/sqltest" not inside a GOPATH | |
no packages to test | |
master!go-sql-test/src *> echo $GOPATH | |
/Users/blake/go-sql-test/src | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> cd .. | |
master!go-sql-test *> export GOPATH=$PWD | |
master!go-sql-test *> | |
master!go-sql-test *> cd src/ | |
master!go-sql-test/src *> go test ./... | |
warning: building out-of-date packages: | |
database/sql | |
encoding/hex | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
# github.com/jbarham/gopgsqldriver | |
pgdriver.go: In function ‘_cgo_c1e115467e73_Cfunc_PQexecParams’: | |
pgdriver.go:72: warning: passing argument 5 of ‘PQexecParams’ from incompatible pointer type | |
pgdriver.go: In function ‘_cgo_c1e115467e73_Cfunc_PQexecPrepared’: | |
pgdriver.go:131: warning: passing argument 4 of ‘PQexecPrepared’ from incompatible pointer type | |
# github.com/jbarham/gopgsqldriver | |
Undefined symbols for architecture x86_64: | |
"_PQclear", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQclear in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQclear) | |
"_PQresultErrorMessage", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQresultErrorMessage in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQresultErrorMessage) | |
"_PQstatus", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQstatus in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQstatus) | |
"_PQconnectdb", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQconnectdb in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQconnectdb) | |
"_PQfname", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQfname in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQfname) | |
"_PQftype", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQftype in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQftype) | |
"_PQerrorMessage", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQerrorMessage in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQerrorMessage) | |
"_PQdescribePrepared", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQdescribePrepared in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQdescribePrepared) | |
"_PQnparams", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQnparams in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQnparams) | |
"_PQprepare", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQprepare in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQprepare) | |
"_PQgetvalue", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQgetvalue in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQgetvalue) | |
"_PQnfields", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQnfields in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQnfields) | |
"_PQntuples", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQntuples in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQntuples) | |
"_PQexec", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexec in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecPrepared, __cgo_c1e115467e73_Cfunc_PQexec , __cgo_c1e115467e73_Cfunc_PQexecParams ) | |
"_PQexecPrepared", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexecPrepared in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecPrepared) | |
"_PQgetisnull", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQgetisnull in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQgetisnull) | |
"_PQfinish", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQfinish in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQfinish) | |
"_PQcmdTuples", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQcmdTuples in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQcmdTuples) | |
"_PQexecParams", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexecParams in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecParams) | |
ld: symbol(s) not found for architecture x86_64 | |
collect2: ld returned 1 exit status | |
FAIL github.com/jbarham/gopgsqldriver [build failed] | |
FAIL github.com/mattn/go-sqlite3 [build failed] | |
? github.com/mattn/go-sqlite3/example [no test files] | |
FAIL github.com/ziutek/mymysql/autorc 0.022s | |
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x18 pc=0xa4d58] | |
goroutine 2 [sleep]: | |
github.com/ziutek/mymysql/native.catchError(0x2293b70, 0x2293100) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:79 +0xcd | |
----- stack segment boundary ----- | |
github.com/ziutek/mymysql/native.catchError(0x22938a0, 0x2293100) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:79 +0xcd | |
----- stack segment boundary ----- | |
bufio.(*Writer).Write(0x0, 0xf84001b140, 0x300000003, 0x100000000, 0x0, ...) | |
/Users/blake/src/go/src/pkg/bufio/bufio.go:466 +0x56 | |
github.com/ziutek/mymysql/native.write(0xf84000e7e0, 0x0, 0xf84001b140, 0x300000003, 0x100206bf0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:41 +0x48 | |
github.com/ziutek/mymysql/native.writeU24(0xf84000e7e0, 0x0, 0x1, 0xf84000e7e0, 0x0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/codecs.go:61 +0xde | |
github.com/ziutek/mymysql/native.(*pktWriter).Write(0xf84000d100, 0xf84001b138, 0x100000001, 0x100000000, 0x0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/packet.go:124 +0x13b | |
github.com/ziutek/mymysql/native.write(0xf84000e780, 0xf84000d100, 0xf84001b138, 0x100000001, 0xf84001b138, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:41 +0x48 | |
github.com/ziutek/mymysql/native.writeByte(0xf84000e780, 0xf84000d100, 0xf84000d101, 0xf84000e780, 0xf84000d100, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:47 +0x83 | |
github.com/ziutek/mymysql/native.(*Conn).sendCmd(0xf84000f000, 0x2293b01, 0x0, 0x0, 0xadc7a, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/command.go:25 +0x10a | |
github.com/ziutek/mymysql/native.(*Conn).closeConn(0xf84000f000, 0xf84000e090, 0x16, 0x30) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/mysql.go:193 +0x8a | |
github.com/ziutek/mymysql/native.(*Conn).Reconnect(0xf84000f000, 0x0, 0x0, 0xf840029090) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/mysql.go:214 +0x55 | |
github.com/ziutek/mymysql/thrsafe.(*Conn).Reconnect(0xf84000d1a0, 0x0, 0x0, 0xf84001b0f8) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/thrsafe/thrsafe.go:69 +0x80 | |
github.com/ziutek/mymysql/autorc.(*Conn).reconnectIfNetErr(0xf84000d1c0, 0x2293d24, 0x2293d58, 0x0, 0xf840029120, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:42 +0x142 | |
github.com/ziutek/mymysql/autorc.(*Conn).connectIfNotConnected(0xf84000d1c0, 0xf84000e750, 0xf8400214c0, 0x8a2b9) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:56 +0xd1 | |
github.com/ziutek/mymysql/autorc.(*Conn).Use(0xf84000d1c0, 0x14ab24, 0x2074657300000004, 0x0, 0x14d44c, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:62 +0x3c | |
github.com/ziutek/mymysql/autorc.TestAutoConnectReconnect(0xf8400000e0, 0x2d8c52f8) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon_test.go:33 +0x14b | |
testing.tRunner(0xf8400000e0, 0x1f6178, 0x0, 0x0) | |
/Users/blake/src/go/src/pkg/testing/testing.go:254 +0x5f | |
created by testing.RunTests | |
/Users/blake/src/go/src/pkg/testing/testing.go:329 +0x772 | |
goroutine 1 [runnable]: | |
testing.RunTests(0x2000, 0x1f6178, 0x100000001, 0x1, 0x1f5f70, ...) | |
/Users/blake/src/go/src/pkg/testing/testing.go:330 +0x795 | |
testing.Main(0x2000, 0x1f6178, 0x100000001, 0x205fb8, 0x0, ...) | |
/Users/blake/src/go/src/pkg/testing/testing.go:265 +0x62 | |
main.main() | |
/var/folders/d6/lg_c4tf52gs468hj6v3n54b40000gn/T/go-build184534305/github.com/ziutek/mymysql/autorc/_test/_testmain.go:43 +0x91 | |
goroutine 3 [syscall]: | |
syscall.Syscall6() | |
/Users/blake/src/go/src/pkg/syscall/asm_darwin_amd64.s:38 +0x5 | |
syscall.kevent(0xf800000006, 0x0, 0x0, 0xf840028188, 0xa, ...) | |
/Users/blake/src/go/src/pkg/syscall/zsyscall_darwin_amd64.go:199 +0x88 | |
syscall.Kevent(0xf800000006, 0x0, 0x0, 0xf840028188, 0xa0000000a, ...) | |
/Users/blake/src/go/src/pkg/syscall/syscall_bsd.go:538 +0xa4 | |
net.(*pollster).WaitFD(0xf840028180, 0xf840021480, 0x0, 0x7700000003, 0x0, ...) | |
/Users/blake/src/go/src/pkg/net/fd_darwin.go:96 +0x122 | |
net.(*pollServer).Run(0xf840021480, 0x0) | |
/Users/blake/src/go/src/pkg/net/fd.go:226 +0xcc | |
created by net.newPollServer | |
/Users/blake/src/go/src/pkg/net/newpollserver.go:35 +0x345 | |
FAIL github.com/ziutek/mymysql/godrv 0.025s | |
--- FAIL: TestAll (0.01 seconds) | |
driver_test.go:10: Error: dial tcp 127.0.0.1:3306: connection refused | |
FAIL | |
ok github.com/ziutek/mymysql/mysql 0.012s | |
exit status 1 | |
FAIL github.com/ziutek/mymysql/native 0.025s | |
--- FAIL: TestUse (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestPing (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestQuery (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestPrepared (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestVarBinding (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestDate (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestBigBlob (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestEmpty (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestReconnect (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestSendLongData (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestMultipleResults (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
FAIL | |
ok github.com/ziutek/mymysql/thrsafe 0.011s | |
FAIL sqltest [build failed] | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> vim sqltest/sql_test.go | |
github.com/ sqltest/ | |
master!go-sql-test/src *> vim sqltest/sql_test.go | |
master!go-sql-test/src *> | |
master!go-sql-test/src *> s | |
M github.com/jbarham/gopgsqldriver/pgdriver.go | |
M github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
M github.com/mattn/go-sqlite3/example/main.go | |
M github.com/mattn/go-sqlite3/sqlite3.go | |
M github.com/mattn/go-sqlite3/sqlite3_test.go | |
M github.com/ziutek/mymysql/godrv/driver.go | |
M github.com/ziutek/mymysql/godrv/driver_test.go | |
M sqltest/sql_test.go | |
master!go-sql-test/src *> go test ./... | |
warning: building out-of-date packages: | |
database/sql | |
encoding/hex | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
# github.com/jbarham/gopgsqldriver | |
pgdriver.go: In function ‘_cgo_c1e115467e73_Cfunc_PQexecParams’: | |
pgdriver.go:160: warning: passing argument 5 of ‘PQexecParams’ from incompatible pointer type | |
pgdriver.go: In function ‘_cgo_c1e115467e73_Cfunc_PQexecPrepared’: | |
pgdriver.go:219: warning: passing argument 4 of ‘PQexecPrepared’ from incompatible pointer type | |
# github.com/jbarham/gopgsqldriver | |
Undefined symbols for architecture x86_64: | |
"_PQdescribePrepared", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQdescribePrepared in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQdescribePrepared) | |
"_PQnparams", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQnparams in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQnparams) | |
"_PQprepare", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQprepare in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQprepare) | |
"_PQgetvalue", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQgetvalue in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQgetvalue) | |
"_PQnfields", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQnfields in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQnfields) | |
"_PQntuples", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQntuples in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQntuples) | |
"_PQexec", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexec in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecPrepared, __cgo_c1e115467e73_Cfunc_PQexec , __cgo_c1e115467e73_Cfunc_PQexecParams ) | |
"_PQexecPrepared", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexecPrepared in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecPrepared) | |
"_PQgetisnull", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQgetisnull in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQgetisnull) | |
"_PQfinish", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQfinish in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQfinish) | |
"_PQcmdTuples", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQcmdTuples in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQcmdTuples) | |
"_PQexecParams", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQexecParams in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQexecParams) | |
"_PQclear", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQclear in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQclear) | |
"_PQresultErrorMessage", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQresultErrorMessage in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQresultErrorMessage) | |
"_PQstatus", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQstatus in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQstatus) | |
"_PQconnectdb", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQconnectdb in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQconnectdb) | |
"_PQfname", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQfname in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQfname) | |
"_PQftype", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQftype in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQftype) | |
"_PQerrorMessage", referenced from: | |
__cgo_c1e115467e73_Cfunc_PQerrorMessage in pgdriver.cgo2.o | |
(maybe you meant: __cgo_c1e115467e73_Cfunc_PQerrorMessage) | |
ld: symbol(s) not found for architecture x86_64 | |
collect2: ld returned 1 exit status | |
FAIL github.com/jbarham/gopgsqldriver [build failed] | |
FAIL github.com/mattn/go-sqlite3 [build failed] | |
? github.com/mattn/go-sqlite3/example [no test files] | |
FAIL github.com/ziutek/mymysql/autorc 0.024s | |
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x18 pc=0xa4d58] | |
goroutine 2 [sleep]: | |
github.com/ziutek/mymysql/native.catchError(0x2293b70, 0x2293100) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:79 +0xcd | |
----- stack segment boundary ----- | |
github.com/ziutek/mymysql/native.catchError(0x22938a0, 0x2293100) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:79 +0xcd | |
----- stack segment boundary ----- | |
bufio.(*Writer).Write(0x0, 0xf84001b140, 0x300000003, 0x100000000, 0x0, ...) | |
/Users/blake/src/go/src/pkg/bufio/bufio.go:466 +0x56 | |
github.com/ziutek/mymysql/native.write(0xf84000e7e0, 0x0, 0xf84001b140, 0x300000003, 0x100206bf0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:41 +0x48 | |
github.com/ziutek/mymysql/native.writeU24(0xf84000e7e0, 0x0, 0x1, 0xf84000e7e0, 0x0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/codecs.go:61 +0xde | |
github.com/ziutek/mymysql/native.(*pktWriter).Write(0xf84000d100, 0xf84001b138, 0x100000001, 0x100000000, 0x0, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/packet.go:124 +0x13b | |
github.com/ziutek/mymysql/native.write(0xf84000e780, 0xf84000d100, 0xf84001b138, 0x100000001, 0xf84001b138, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:41 +0x48 | |
github.com/ziutek/mymysql/native.writeByte(0xf84000e780, 0xf84000d100, 0xf84000d101, 0xf84000e780, 0xf84000d100, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/common.go:47 +0x83 | |
github.com/ziutek/mymysql/native.(*Conn).sendCmd(0xf84000f000, 0x2293b01, 0x0, 0x0, 0xadc7a, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/command.go:25 +0x10a | |
github.com/ziutek/mymysql/native.(*Conn).closeConn(0xf84000f000, 0xf84000e090, 0x16, 0x30) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/mysql.go:193 +0x8a | |
github.com/ziutek/mymysql/native.(*Conn).Reconnect(0xf84000f000, 0x0, 0x0, 0xf840029090) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native/mysql.go:214 +0x55 | |
github.com/ziutek/mymysql/thrsafe.(*Conn).Reconnect(0xf84000d1a0, 0x0, 0x0, 0xf84001b0f8) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/thrsafe/thrsafe.go:69 +0x80 | |
github.com/ziutek/mymysql/autorc.(*Conn).reconnectIfNetErr(0xf84000d1c0, 0x2293d24, 0x2293d58, 0x0, 0xf840029120, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:42 +0x142 | |
github.com/ziutek/mymysql/autorc.(*Conn).connectIfNotConnected(0xf84000d1c0, 0xf84000e750, 0xf8400214c0, 0x8a2b9) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:56 +0xd1 | |
github.com/ziutek/mymysql/autorc.(*Conn).Use(0xf84000d1c0, 0x14ab24, 0x2074657300000004, 0x0, 0x14d44c, ...) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon.go:62 +0x3c | |
github.com/ziutek/mymysql/autorc.TestAutoConnectReconnect(0xf8400000e0, 0x11432c98) | |
/Users/blake/go-sql-test/src/github.com/ziutek/mymysql/autorc/autorecon_test.go:33 +0x14b | |
testing.tRunner(0xf8400000e0, 0x1f6178, 0x0, 0x0) | |
/Users/blake/src/go/src/pkg/testing/testing.go:254 +0x5f | |
created by testing.RunTests | |
/Users/blake/src/go/src/pkg/testing/testing.go:329 +0x772 | |
goroutine 1 [runnable]: | |
testing.RunTests(0x2000, 0x1f6178, 0x100000001, 0x1, 0x1f5f70, ...) | |
/Users/blake/src/go/src/pkg/testing/testing.go:330 +0x795 | |
testing.Main(0x2000, 0x1f6178, 0x100000001, 0x205fb8, 0x0, ...) | |
/Users/blake/src/go/src/pkg/testing/testing.go:265 +0x62 | |
main.main() | |
/var/folders/d6/lg_c4tf52gs468hj6v3n54b40000gn/T/go-build274293767/github.com/ziutek/mymysql/autorc/_test/_testmain.go:43 +0x91 | |
goroutine 3 [syscall]: | |
syscall.Syscall6() | |
/Users/blake/src/go/src/pkg/syscall/asm_darwin_amd64.s:38 +0x5 | |
syscall.kevent(0xf800000006, 0x0, 0x0, 0xf840028188, 0xa, ...) | |
/Users/blake/src/go/src/pkg/syscall/zsyscall_darwin_amd64.go:199 +0x88 | |
syscall.Kevent(0xf800000006, 0x0, 0x0, 0xf840028188, 0xa0000000a, ...) | |
/Users/blake/src/go/src/pkg/syscall/syscall_bsd.go:538 +0xa4 | |
net.(*pollster).WaitFD(0xf840028180, 0xf840021480, 0x0, 0x7700000003, 0x0, ...) | |
/Users/blake/src/go/src/pkg/net/fd_darwin.go:96 +0x122 | |
net.(*pollServer).Run(0xf840021480, 0x0) | |
/Users/blake/src/go/src/pkg/net/fd.go:226 +0xcc | |
created by net.newPollServer | |
/Users/blake/src/go/src/pkg/net/newpollserver.go:35 +0x345 | |
FAIL github.com/ziutek/mymysql/godrv 0.024s | |
--- FAIL: TestAll (0.01 seconds) | |
driver_test.go:10: Error: dial tcp 127.0.0.1:3306: connection refused | |
FAIL | |
ok github.com/ziutek/mymysql/mysql 0.004s | |
exit status 1 | |
FAIL github.com/ziutek/mymysql/native 0.025s | |
--- FAIL: TestUse (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestPing (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestQuery (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestPrepared (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestVarBinding (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestDate (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestBigBlob (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestEmpty (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestReconnect (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestSendLongData (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
--- FAIL: TestMultipleResults (0.00 seconds) | |
native_test.go:43: Error: dial tcp 127.0.0.1:3306: connection refused | |
FAIL | |
ok github.com/ziutek/mymysql/thrsafe 0.012s | |
FAIL sqltest [build failed] | |
master!go-sql-test/src *> cd | |
github.com/ sqltest/ | |
master!go-sql-test/src *> cd sqltest/ | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
database/sql | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go build | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
database/sql | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go test -v | |
warning: building out-of-date packages: | |
database/sql | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go test -v | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> | |
master!go-sql-test/src/sqltest *> ls | |
sql_test.go | |
master!go-sql-test/src/sqltest *> vim sql_test.go | |
master!go-sql-test/src/sqltest *> | |
master!go-sql-test/src/sqltest *> go install | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go install | |
master!go-sql-test/src/sqltest *> go build | |
master!go-sql-test/src/sqltest *> s | |
M ../github.com/jbarham/gopgsqldriver/pgdriver.go | |
M ../github.com/jbarham/gopgsqldriver/pgdriver_test.go | |
M ../github.com/mattn/go-sqlite3/example/main.go | |
M ../github.com/mattn/go-sqlite3/sqlite3.go | |
M ../github.com/mattn/go-sqlite3/sqlite3_test.go | |
M ../github.com/ziutek/mymysql/godrv/driver.go | |
M ../github.com/ziutek/mymysql/godrv/driver_test.go | |
M sql_test.go | |
master!go-sql-test/src/sqltest *> | |
master!go-sql-test/src/sqltest *> ls | |
sql_test.go | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go list -json | |
{ | |
"ImportPath": "sqltest", | |
"Name": "sqltest", | |
"Dir": "/Users/blake/go-sql-test/src/sqltest", | |
"TestGoFiles": [ | |
"sql_test.go" | |
], | |
"Deps": [ | |
"runtime", | |
"unsafe" | |
] | |
} | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go test -x -v | |
WORK=/var/folders/d6/lg_c4tf52gs468hj6v3n54b40000gn/T/go-build350899748 | |
mkdir -p $WORK/sqltest/_test/ | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
github.com/ziutek/mymysql/mysql | |
github.com/ziutek/mymysql/native | |
github.com/ziutek/mymysql/godrv | |
installing these packages with 'go install' will speed future tests. | |
mkdir -p $WORK/github.com/mattn/go-sqlite3/_obj/ | |
cd /Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3 | |
pkg-config --cflags sqlite3 | |
mkdir -p $WORK/github.com/ziutek/mymysql/mysql/_obj/ | |
cd /Users/blake/go-sql-test/src/github.com/ziutek/mymysql/mysql | |
6g -o $WORK/github.com/ziutek/mymysql/mysql/_obj/_go_.6 -p github.com/ziutek/mymysql/mysql -I $WORK ./errors.go ./field.go ./interface.go ./row.go ./types.go ./utils.go | |
exit status 1 | |
gopack grc $WORK/github.com/ziutek/mymysql/mysql.a $WORK/github.com/ziutek/mymysql/mysql/_obj/_go_.6 | |
mkdir -p $WORK/github.com/ziutek/mymysql/native/_obj/ | |
cd /Users/blake/go-sql-test/src/github.com/ziutek/mymysql/native | |
6g -o $WORK/github.com/ziutek/mymysql/native/_obj/_go_.6 -p github.com/ziutek/mymysql/native -I $WORK -I /Users/blake/go-sql-test/pkg/darwin_amd64 ./addons.go ./binding.go ./codecs.go ./command.go ./common.go ./consts.go ./errors.go ./init.go ./mysql.go ./packet.go ./prepared.go ./result.go ./unsafe.go | |
gopack grc $WORK/github.com/ziutek/mymysql/native.a $WORK/github.com/ziutek/mymysql/native/_obj/_go_.6 | |
mkdir -p $WORK/github.com/ziutek/mymysql/godrv/_obj/ | |
cd /Users/blake/go-sql-test/src/github.com/ziutek/mymysql/godrv | |
6g -o $WORK/github.com/ziutek/mymysql/godrv/_obj/_go_.6 -p github.com/ziutek/mymysql/godrv -I $WORK -I /Users/blake/go-sql-test/pkg/darwin_amd64 ./driver.go | |
gopack grc $WORK/github.com/ziutek/mymysql/godrv.a $WORK/github.com/ziutek/mymysql/godrv/_obj/_go_.6 | |
$WORK/sqltest/_test/test.out -test.v=true | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> | |
master!go-sql-test/src/sqltest *> pbpaste | xargs go install | |
exit status 1 | |
master!go-sql-test/src/sqltest *> github.com/mattn/go-sqlite3 | |
bash: github.com/mattn/go-sqlite3: No such file or directory | |
master!go-sql-test/src/sqltest *> github.com/ziutek/mymysql/mysql | |
bash: github.com/ziutek/mymysql/mysql: No such file or directory | |
master!go-sql-test/src/sqltest *> github.com/ziutek/mymysql/native | |
bash: github.com/ziutek/mymysql/native: No such file or directory | |
master!go-sql-test/src/sqltest *> go install github.com/ziutek/mymysql/godrv | |
master!go-sql-test/src/sqltest *> go install github.com/ziutek/mymysql/native | |
master!go-sql-test/src/sqltest *> go test | |
warning: building out-of-date packages: | |
github.com/mattn/go-sqlite3 | |
installing these packages with 'go install' will speed future tests. | |
exit status 1 | |
FAIL sqltest [build failed] | |
master!go-sql-test/src/sqltest *> go install github.com/mattn/go-sqlite3 | |
exit status 1 | |
master!go-sql-test/src/sqltest *> go build github.com/mattn/go-sqlite3 | |
exit status 1 | |
master!go-sql-test/src/sqltest *> cd .. | |
master!go-sql-test/src *> cd | |
github.com/ sqltest/ | |
master!go-sql-test/src *> cd github.com/ | |
jbarham/ mattn/ ziutek/ | |
master!go-sql-test/src *> cd github.com/mattn/go-sqlite3/ | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> ls | |
Makefile README.mkd example sqlite3.go sqlite3_test.go | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> go build -v | |
github.com/mattn/go-sqlite3 | |
exit status 1 | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> go build -v -x | |
WORK=/var/folders/d6/lg_c4tf52gs468hj6v3n54b40000gn/T/go-build940448759 | |
github.com/mattn/go-sqlite3 | |
mkdir -p $WORK/github.com/mattn/go-sqlite3/_obj/ | |
cd /Users/blake/go-sql-test/src/github.com/mattn/go-sqlite3 | |
pkg-config --cflags sqlite3 | |
exit status 1 | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> pk | |
pkg-config pkgbuild pkgutil | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> pkg-config --cflags sqlite3 | |
Package sqlite3 was not found in the pkg-config search path. | |
Perhaps you should add the directory containing `sqlite3.pc' | |
to the PKG_CONFIG_PATH environment variable | |
No package 'sqlite3' found | |
master!go-sql-test/src/github.com/mattn/go-sqlite3 *> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment