From 18f2ec37d384d0ee65be85b3c8ae1b4aa58168b2 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 29 Jul 2026 15:50:02 +0900 Subject: [PATCH] Assert the expected too many SQL variables error --- _example/limit/limit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_example/limit/limit.go b/_example/limit/limit.go index 16bf025..4ac33c2 100644 --- a/_example/limit/limit.go +++ b/_example/limit/limit.go @@ -93,6 +93,9 @@ func main() { if err == nil { 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) bigLimitVariableNumber := 999999