diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:36:58 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-03 11:36:58 -0700 |
commit | 432b86e404a8573e84d45487b9746b00a6d729b9 (patch) | |
tree | 39194b2902df65bbf4f6b127081bf860db3d07b1 | |
parent | fe8a497c7fb4b1a32c11c0fc523d6bb3a48742db (diff) |
Fixing select'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 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 |