summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-06 16:19:40 -0700
committerPixel <pixel@nobis-crew.org>2008-10-06 16:19:40 -0700
commit1cfb3dfa1f9a3a827bb674e5d3becbc6dbf7d780 (patch)
tree77804f2f72e30e90752d5e96bdad29064b6cb410
parent372a85a4b0f850abe0f3457eaefb0951102d54ff (diff)
Consolidating foreign key system by enhancing restrictions with tablenames.
-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