summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dblib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua
index e0449a5..e98aae8 100644
--- a/lib/dblib.lua
+++ b/lib/dblib.lua
@@ -392,7 +392,7 @@ _luadb = {
local k, v
for k, v in pairs(fields) do
- if t._.ddl[v] then
+ if not t._.ddl[v] then
error("Trying to select a field which doesn't exist: " .. k .. " - inside of table " .. t._.tablename)
end
if not first then