diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:30:33 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:30:33 -0700 |
commit | 2a3ac7811b909ab809c8e731fbd63eecf25653b9 (patch) | |
tree | 38f673a1c2573b892b5204380d639400b08510a7 /lib/dblib.lua | |
parent | 5cfd8ae5b5dd713af7d974c2b0234ab0d4487b84 (diff) |
Fixing multiple fields SQL syntax.
Diffstat (limited to 'lib/dblib.lua')
-rw-r--r-- | lib/dblib.lua | 2 |
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 |