summaryrefslogtreecommitdiff
path: root/tex/context/base/util-sql.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-11-05 20:00:32 +0200
committerMarius <mariausol@gmail.com>2012-11-05 20:00:32 +0200
commit4a0adb91322b32b5cc86405ddf2b29b2876c144e (patch)
tree39279644270ad252eeb5867a3af817f5749da9a3 /tex/context/base/util-sql.lua
parent5e471aeaf55b23ad2c794745ae8719cb3ae75d9b (diff)
downloadcontext-4a0adb91322b32b5cc86405ddf2b29b2876c144e.tar.gz
beta 2012.11.05 17:38
Diffstat (limited to 'tex/context/base/util-sql.lua')
-rw-r--r--tex/context/base/util-sql.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/util-sql.lua b/tex/context/base/util-sql.lua
index 07841f8fd..02a818c54 100644
--- a/tex/context/base/util-sql.lua
+++ b/tex/context/base/util-sql.lua
@@ -331,7 +331,6 @@ function sql.usedatabase(presets,datatable)
end
end
-
-- local data = utilities.sql.prepare {
-- templatefile = "test.sql",
-- variables = { },
@@ -399,7 +398,8 @@ if tex and tex.systemmodes then
function sql.prepare(specification,tag)
-- could go into tuc if needed
-- todo: serialize per column
- local filename = format("%s-sql-result-%s.tuc",tex.jobname,tag or "last")
+ local tag = tag or specification.tag or "last"
+ local filename = format("%s-sql-result-%s.tuc",tex.jobname,tag)
if tex.systemmodes["first"] then
local data, keys = sql.execute(specification)
if not data then