summaryrefslogtreecommitdiff
path: root/tex/context/base/util-sql-imp-library.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-13 01:20:16 +0200
committerMarius <mariausol@gmail.com>2013-03-13 01:20:16 +0200
commit4d6709d2eec4237345164c15be765be0669541d0 (patch)
tree110053b7da1c5638de03d45cf2898ebdd49188e5 /tex/context/base/util-sql-imp-library.lua
parent1253a5723d8188696f9ab801b13ec84f16c6bf6f (diff)
downloadcontext-4d6709d2eec4237345164c15be765be0669541d0.tar.gz
beta 2013.03.13 00:08
Diffstat (limited to 'tex/context/base/util-sql-imp-library.lua')
-rw-r--r--tex/context/base/util-sql-imp-library.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/tex/context/base/util-sql-imp-library.lua b/tex/context/base/util-sql-imp-library.lua
index 5de3670e5..34b9b339d 100644
--- a/tex/context/base/util-sql-imp-library.lua
+++ b/tex/context/base/util-sql-imp-library.lua
@@ -109,11 +109,11 @@ local function fetched(specification,query,converter)
if not connection then
session = initialize()
if not session then
- return format("no session for %q",id)
+ return format("no session for %a",id)
end
connection = connect(session,specification)
if not connection then
- return format("no connection for %q",id)
+ return format("no connection for %a",id)
end
cache[id] = { session = session, connection = connection }
end
@@ -142,7 +142,7 @@ local function fetched(specification,query,converter)
local q = query[i]
local r, m = connection:execute(q)
if m then
- report_state("error in query to host %s: %s",specification.host or "?",string.collapsespaces(q))
+ report_state("error in query to host %a: %s",specification.host,string.collapsespaces(q))
if m then
report_state("message: %s",m)
end
@@ -208,13 +208,13 @@ local function datafetched(specification,query,converter)
report_state("call error, retrying")
callokay, connectionerror, data, keys = pcall(fetched,specification,query,converter)
elseif connectionerror then
- report_state("error: %q, retrying",connectionerror)
+ report_state("error: %s, retrying",connectionerror)
callokay, connectionerror, data, keys = pcall(fetched,specification,query,converter)
end
if not callokay then
report_state("persistent call error")
elseif connectionerror then
- report_state("persistent error: %q",connectionerror)
+ report_state("persistent error: %s",connectionerror)
end
return data or { }, keys or { }
end