Commit ac9891a7 authored by gwenn's avatar gwenn

Fix regression with SQLite 3.16.1

parent f14e8dae
......@@ -130,8 +130,10 @@ func TestExists(t *testing.T) {
//println(err.Error())
_, err = db.Exists("PRAGMA shrink_memory")
assert.T(t, err != nil)
//println(err.Error())
if VersionNumber() < 3016000 {
assert.T(t, err != nil)
//println(err.Error())
}
}
func TestInsert(t *testing.T) {
......
......@@ -481,8 +481,12 @@ func TestInsertMisuse(t *testing.T) {
checkNoError(t, err, "prepare error: %s")
defer checkFinalize(ois, t)
rowID, err := ois.Insert()
checkNoError(t, err, "insert error: %s")
assert.Equal(t, int64(-1), rowID)
if VersionNumber() < 3016000 {
checkNoError(t, err, "insert error: %s")
assert.Equal(t, int64(-1), rowID)
} else {
assert.T(t, err != nil, "wrapper specific error expected")
}
}
func TestScanValues(t *testing.T) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment