Skip to content

Commit

Permalink
fix delete
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianGray committed Oct 31, 2015
1 parent 11c1a8e commit 7e767e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package = "lusty-store-mysql"
version = "0.4-3"
version = "0.4-4"
source = {
url = "https://github.com/Olivine-Labs/lusty-store-mysql/archive/v0.4.tar.gz",
dir = "lusty-store-mysql-0.4"
Expand Down
2 changes: 1 addition & 1 deletion lusty-store-mysql/store/mysql/delete.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ return {
else
q = context.query
end
q = "DELETE FROM "..config.collection.." WHERE "..q..";"
q = "DELETE FROM "..config.collection..(#q>0 and " WHERE "..q or "")..";"
local results = {}
local res, err, errno, sqlstate = db:query(q)
if not res then
Expand Down

0 comments on commit 7e767e3

Please sign in to comment.