Skip to content

Commit

Permalink
fix placeholder for mysql driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal authored Jan 4, 2023
1 parent bd797c4 commit d1cce1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func WrapContext(ctx context.Context, db *sql.DB, driverName, tag string) *DB {
sqlwDB := &DB{
DB: db,
tag: tag,
placeholder: "$",
placeholder: "?",
placeholderBuilder: func(int) string { return "?" },
rawScan: true,
mapping: &sync.Map{},
Expand Down

0 comments on commit d1cce1b

Please sign in to comment.