From 432b86e404a8573e84d45487b9746b00a6d729b9 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 3 Oct 2008 11:36:58 -0700 Subject: Fixing select's fields check. --- lib/dblib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3