diff options
-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 |