Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: panic: sql: Register called twice for driver odbc when running `go test` on Linux #6209
What steps will reproduce the problem? 1. hg clone https://code.google.com/p/odbc/ 2. cd odbc/ 3. go test What is the expected output? What do you see instead? panic: sql: Register called twice for driver odbc goroutine 1 [running]: database/sql.Register(0x81483d8, 0x4, 0x1834f680, 0x8204060) /usr/local/go/src/pkg/database/sql/sql.go:31 +0xe1 _/home/bbigras/odbc.init·1() /home/bbigras/odbc/driver.go:74 +0x72 _/home/bbigras/odbc.init() /home/bbigras/odbc/mssql_test.go:864 +0x1610 main.init() _/home/bbigras/odbc/_test/_testmain.go:34 +0x3e goroutine 2 [syscall]: exit status 2 FAIL _/home/bbigras/odbc 0.093s Which compiler are you using (5g, 6g, 8g, gccgo)? I have no idea. Which operating system are you using? Ubuntu 10.04.4 LTS Which version are you using? (run 'go version') go version go1.1.2 linux/386 freetds 0.82-6build1 tdsodbc 0.82-6build1 unixodbc 2.2.11-21 Please provide any additional information below.