summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-03 11:39:00 -0700
committerPixel <pixel@nobis-crew.org>2008-10-03 11:39:00 -0700
commitd977ac60cf001e9bfa27fc7b2dcc357af9771e6f (patch)
treebdeb881c1cfe796d6fc8c2fd0a5cf1586f68650f
parent432b86e404a8573e84d45487b9746b00a6d729b9 (diff)
Fixing update's fields check.
-rw-r--r--lib/dblib.lua2
1 files changed, 1 insertions, 1 deletions
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