DB#BuildDeleteStmt(): don't pre-rebind ?s

refs #136
This commit is contained in:
Alexander A. Klimov 2021-11-24 16:03:57 +01:00
parent 7f4b895ea9
commit 3eb14274dd

View file

@ -102,10 +102,10 @@ func (db *DB) BuildColumns(subject interface{}) []string {
// BuildDeleteStmt returns a DELETE statement for the given struct.
func (db *DB) BuildDeleteStmt(from interface{}) string {
return db.Rebind(fmt.Sprintf(
return fmt.Sprintf(
`DELETE FROM "%s" WHERE id IN (?)`,
utils.TableName(from),
))
)
}
// BuildInsertStmt returns an INSERT INTO statement for the given struct.