Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo #763

Merged
merged 1 commit into from Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions _example/limit/limit.go
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand All @@ -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)
Expand All @@ -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)
Expand Down