From d51eaf3b34716568abaa4572ba9b0d5dd8e29d97 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Thu, 9 Jan 2020 12:43:04 +0300 Subject: [PATCH] Fix typo (#763) --- _example/limit/limit.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_example/limit/limit.go b/_example/limit/limit.go index 4e4b897..1f33634 100644 --- a/_example/limit/limit.go +++ b/_example/limit/limit.go @@ -27,7 +27,7 @@ func createBulkInsertQuery(n int, start int) (query string, args []interface{}) return } -func bukInsert(db *sql.DB, query string, args []interface{}) (err error) { +func bulkInsert(db *sql.DB, query string, args []interface{}) (err error) { stmt, err := db.Prepare(query) if err != nil { return @@ -76,7 +76,7 @@ func main() { num := 400 query, args := createBulkInsertQuery(num, 0) - err = bukInsert(db, query, args) + err = bulkInsert(db, query, args) if err != nil { log.Fatal(err) } @@ -88,7 +88,7 @@ func main() { log.Printf("updated SQLITE_LIMIT_VARIABLE_NUMBER: %d", limitVariableNumber) query, args = createBulkInsertQuery(num, num) - err = bukInsert(db, query, args) + err = bulkInsert(db, query, args) if err != nil { if err != nil { log.Printf("expect failed since SQLITE_LIMIT_VARIABLE_NUMBER is too small: %v", err) @@ -102,7 +102,7 @@ func main() { log.Printf("updated SQLITE_LIMIT_VARIABLE_NUMBER: %d", limitVariableNumber) query, args = createBulkInsertQuery(500, num+num) - err = bukInsert(db, query, args) + err = bulkInsert(db, query, args) if err != nil { if err != nil { log.Fatal(err)