From 2b28a818f1170242527ea8a729507e2a69a824b1 Mon Sep 17 00:00:00 2001 From: "byunghwa.yun" Date: Sun, 25 Jul 2021 11:06:14 +0900 Subject: [PATCH] Fix mysql sql for batch delete --- weed/filer/mysql/mysql_sql_gen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/mysql/mysql_sql_gen.go b/weed/filer/mysql/mysql_sql_gen.go index 477baf66b..93d3e3f9e 100644 --- a/weed/filer/mysql/mysql_sql_gen.go +++ b/weed/filer/mysql/mysql_sql_gen.go @@ -38,7 +38,7 @@ func (gen *SqlGenMysql) GetSqlDelete(tableName string) string { } func (gen *SqlGenMysql) GetSqlDeleteFolderChildren(tableName string) string { - return fmt.Sprintf("DELETE FROM `%s` WHERE dirhash=? AND directory=? LIMIT ?", tableName) + return fmt.Sprintf("DELETE FROM `%s` WHERE dirhash=? AND directory=?", tableName) } func (gen *SqlGenMysql) GetSqlListExclusive(tableName string) string {