summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-03 11:30:33 -0700
committerPixel <pixel@nobis-crew.org>2008-10-03 11:30:33 -0700
commit2a3ac7811b909ab809c8e731fbd63eecf25653b9 (patch)
tree38f673a1c2573b892b5204380d639400b08510a7
parent5cfd8ae5b5dd713af7d974c2b0234ab0d4487b84 (diff)
Fixing multiple fields SQL syntax.
-rw-r--r--lib/dblib.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua
index c0414f1..0229f60 100644
--- a/lib/dblib.lua
+++ b/lib/dblib.lua
@@ -136,6 +136,8 @@ _luadb = {
for k, v in pairs(fields) do
if not first then
q = q .. ", "
+ else
+ first = false
end
q = q .. "`" .. db.sql_escape(k) .. "` " .. v
end