Assert the expected too many SQL variables error

This commit is contained in:
Yasuhiro Matsumoto
2026-07-29 15:50:02 +09:00
parent 084f3d386f
commit 18f2ec37d3

View File

@@ -93,6 +93,9 @@ func main() {
if err == nil { if err == nil {
log.Fatal("expected failure since SQLITE_LIMIT_VARIABLE_NUMBER is too small, but insert succeeded") log.Fatal("expected failure since SQLITE_LIMIT_VARIABLE_NUMBER is too small, but insert succeeded")
} }
if !strings.Contains(err.Error(), "too many SQL variables") {
log.Fatalf("expected too many SQL variables error, got: %v", err)
}
log.Printf("expect failed since SQLITE_LIMIT_VARIABLE_NUMBER is too small: %v", err) log.Printf("expect failed since SQLITE_LIMIT_VARIABLE_NUMBER is too small: %v", err)
bigLimitVariableNumber := 999999 bigLimitVariableNumber := 999999