mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-09 08:56:54 -04:00
parent
7f4b895ea9
commit
3eb14274dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue