2
0

Merge pull request #48 from karlseguin/94test

select; is valid in 9.4 (the beta anyways)
This commit is contained in:
Jack Christensen
2014-11-17 20:33:53 -06:00
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -168,9 +168,10 @@ func TestPoolReleaseWithTransactions(t *testing.T) {
t.Fatalf("Unable to acquire connection: %v", err) t.Fatalf("Unable to acquire connection: %v", err)
} }
mustExec(t, conn, "begin") mustExec(t, conn, "begin")
if _, err = conn.Exec("select"); err == nil { if _, err = conn.Exec("selct"); err == nil {
t.Fatal("Did not receive expected error") t.Fatal("Did not receive expected error")
} }
if conn.TxStatus != 'E' { if conn.TxStatus != 'E' {
t.Fatalf("Expected TxStatus to be 'E', instead it was '%c'", conn.TxStatus) t.Fatalf("Expected TxStatus to be 'E', instead it was '%c'", conn.TxStatus)
} }
+1 -1
View File
@@ -294,7 +294,7 @@ func TestExecFailure(t *testing.T) {
conn := mustConnect(t, *defaultConnConfig) conn := mustConnect(t, *defaultConnConfig)
defer closeConn(t, conn) defer closeConn(t, conn)
if _, err := conn.Exec("select;"); err == nil { if _, err := conn.Exec("selct;"); err == nil {
t.Fatal("Expected SQL syntax error") t.Fatal("Expected SQL syntax error")
} }