diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:39:00 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:39:00 -0700 |
commit | d977ac60cf001e9bfa27fc7b2dcc357af9771e6f (patch) | |
tree | bdeb881c1cfe796d6fc8c2fd0a5cf1586f68650f | |
parent | 432b86e404a8573e84d45487b9746b00a6d729b9 (diff) |
Fixing update's fields check.
-rw-r--r-- | lib/dblib.lua | 2 |
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 |