Merge pull request #48 from karlseguin/94test
select; is valid in 9.4 (the beta anyways)
This commit is contained in:
+2
-1
@@ -168,9 +168,10 @@ func TestPoolReleaseWithTransactions(t *testing.T) {
|
||||
t.Fatalf("Unable to acquire connection: %v", err)
|
||||
}
|
||||
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")
|
||||
}
|
||||
|
||||
if conn.TxStatus != 'E' {
|
||||
t.Fatalf("Expected TxStatus to be 'E', instead it was '%c'", conn.TxStatus)
|
||||
}
|
||||
|
||||
+1
-1
@@ -294,7 +294,7 @@ func TestExecFailure(t *testing.T) {
|
||||
conn := mustConnect(t, *defaultConnConfig)
|
||||
defer closeConn(t, conn)
|
||||
|
||||
if _, err := conn.Exec("select;"); err == nil {
|
||||
if _, err := conn.Exec("selct;"); err == nil {
|
||||
t.Fatal("Expected SQL syntax error")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user