2
0

Replace Select(type) with SelectValue

refs #19
This commit is contained in:
Jack Christensen
2013-06-29 09:16:58 -05:00
parent 9294c0ee57
commit d1fda1b21c
4 changed files with 135 additions and 263 deletions
+2 -1
View File
@@ -88,11 +88,12 @@ func TestPoolAcquireAndReleaseCycle(t *testing.T) {
allConnections = acquireAll()
for _, c := range allConnections {
n, err := c.SelectInt32("select counter from t")
v, err := c.SelectValue("select counter from t")
if err != nil {
t.Fatal("Unable to read back execution counter: " + err.Error())
}
n := v.(int32)
if n == 0 {
t.Error("A connection was never used")
}