forked from mirror/go-sqlite3
Fix LIMIT test
This commit is contained in:
parent
ff61c4d59e
commit
3aec8b11ca
|
@ -319,7 +319,6 @@ func TestInsert(t *testing.T) {
|
|||
|
||||
func TestUpsert(t *testing.T) {
|
||||
_, n, _ := Version()
|
||||
fmt.Printf("Version: %d\n", n)
|
||||
if !(n >= 3024000) {
|
||||
t.Skip("UPSERT requires sqlite3 => 3.24.0")
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ func TestLimit(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if rv := driverConn.SetLimit(SQLITE_LIMIT_TRIGGER_DEPTH, 5); rv != 1000 {
|
||||
if rv := driverConn.SetLimit(SQLITE_LIMIT_TRIGGER_DEPTH, 5); rv != 1000 && rv != -1 {
|
||||
t.Fatalf("Unable to set limit; %d", rv)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue