From d977ac60cf001e9bfa27fc7b2dcc357af9771e6f Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 3 Oct 2008 11:39:00 -0700 Subject: Fixing update's fields check. --- lib/dblib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dblib.lua b/lib/dblib.lua index e98aae8..a1036cd 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -363,7 +363,7 @@ _luadb = { local k, v for k, v in pairs(data) do - if t._.ddl[k] then + if not t._.ddl[k] then error("Trying to update a field which doesn't exist: " .. k .. " - inside of table " .. t._.tablename) end if not first then -- cgit v1.2.3