Skip to content

Commit

Permalink
sanity check denisenkom#686
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Jan 24, 2021
1 parent b997f6c commit ded6c03
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sqlx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,17 @@ func TestScanError(t *testing.T) {
})
}

func TestMultiInsert(t *testing.T) {
RunWithSchema(defaultSchema, t, func(db *DB, t *testing.T, now string) {
loadDefaultFixture(db, t)
q := db.Rebind(`INSERT INTO employees (name, id) VALUES (?, ?), (?, ?);`)
db.MustExec(q,
"Name1", 400,
"name2", 500,
)
})
}

// FIXME: this function is kinda big but it slows things down to be constantly
// loading and reloading the schema..

Expand Down

0 comments on commit ded6c03

Please sign in to comment.