Fix LIMIT test

This commit is contained in:
Gert-Jan Timmer 2018-07-03 14:04:11 +02:00
parent ff61c4d59e
commit 3aec8b11ca
2 changed files with 1 additions and 2 deletions

View File

@ -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")
}

View File

@ -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)
}