summaryrefslogtreecommitdiff
path: root/lib/dblib.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-03 11:36:58 -0700
committerPixel <pixel@nobis-crew.org>2008-10-03 11:36:58 -0700
commit432b86e404a8573e84d45487b9746b00a6d729b9 (patch)
tree39194b2902df65bbf4f6b127081bf860db3d07b1 /lib/dblib.lua
parentfe8a497c7fb4b1a32c11c0fc523d6bb3a48742db (diff)
Fixing select's fields check.
Diffstat (limited to 'lib/dblib.lua')
-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