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 ffd93e6..7043a2d 100644
--- a/lib/dblib.lua
+++ b/lib/dblib.lua
@@ -566,7 +566,7 @@ _luadb = {
end
if type(expr) == "string" or type(expr) == "number" then
- return "`" .. field .. "` " .. op .. ' "' .. t._.db.sql_escape(expr) .. '"'
+ return r._.tbl._.tname ".`" .. field .. "` " .. op .. ' "' .. t._.db.sql_escape(expr) .. '"'
elseif type(expr) == "table" then
error("Complex queries not handled for now")
else