Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
4187f17937
1 changed files with 5 additions and 0 deletions
|
@ -999,6 +999,11 @@ func deleteBlocksByIDs(tx *sql.Tx, ids []string) (err error) {
|
|||
rowIDs = append(rowIDs, strconv.FormatInt(rowID, 10))
|
||||
}
|
||||
rows.Close()
|
||||
|
||||
if 1 > len(rowIDs) {
|
||||
return
|
||||
}
|
||||
|
||||
stmt = "DELETE FROM blocks WHERE ROWID IN (" + strings.Join(rowIDs, ",") + ")"
|
||||
if err = execStmtTx(tx, stmt); nil != err {
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue