不要怂,就是干,撸起袖子干!

Commit 93efb3f8 by Sascha Depold

fixed removal of limit on deletion

1 parent df5b611e
Showing with 1 additions and 1 deletions
......@@ -45,7 +45,7 @@ var classMethods = {
break
case 'delete':
query = "DELETE FROM %{table} WHERE %{where}"
if(values.limit != null) query += " LIMIT 1"
if(typeof values.limit == 'undefined') query += " LIMIT 1"
break
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!