From 2a3ac7811b909ab809c8e731fbd63eecf25653b9 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 3 Oct 2008 11:30:33 -0700 Subject: Fixing multiple fields SQL syntax. --- lib/dblib.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3