-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
in v 1.3.3
query := "INSERT INTO TABLE_VALUES (`tid`, `uid`, `count`, `deposit`, `ver`) VALUES (:tid, :uid, :count, :deposit, :ver) ON DUPLICATE KEY UPDATE `tid`=VALUES(`tid`), `uid`=VALUES(`uid`), `count`=VALUES(`count`), `deposit`=VALUES(`deposit`), `ver`=VALUES(`ver`)"
args := []map[string]interface{}{
{"tid": 1, "uid": 1, "count": 1, "deposit": 0, "ver": 0},
{"tid": 2, "uid": 1, "count": 1, "deposit": 0, "ver": 0},
}
query, argsOut, err := sqlx.Named(query, args)
_, err = db.ExecContext(ctx, query, argsOut...)
got sql: expected 5 arguments, got 10
error.
vikstrous2, TestardR, SenselessA, Vyacheslav1557 and alex-paperspace
Metadata
Metadata
Assignees
Labels
No labels