diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-28 17:36:57 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-28 17:36:57 +0200 |
commit | 5794d8b0c845aad2ab4cf36dc14201b21ef5a784 (patch) | |
tree | 0ed7f952d69e07a2a885f76fcb7f24499dd20768 /tex/context/base/mkiv/util-sql-imp-library.lua | |
parent | b098b3973dd4a38184882a4a5b84aad2bdd5835a (diff) | |
download | context-5794d8b0c845aad2ab4cf36dc14201b21ef5a784.tar.gz |
2018-08-28 17:29:00
Diffstat (limited to 'tex/context/base/mkiv/util-sql-imp-library.lua')
-rw-r--r-- | tex/context/base/mkiv/util-sql-imp-library.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/util-sql-imp-library.lua b/tex/context/base/mkiv/util-sql-imp-library.lua index a2b692e45..dbbeb32cc 100644 --- a/tex/context/base/mkiv/util-sql-imp-library.lua +++ b/tex/context/base/mkiv/util-sql-imp-library.lua @@ -156,13 +156,13 @@ local function fetched(specification,query,converter) okay = true end end - if not okay then -- can go - if session then - session:close() - end + if not okay then if connection then connection:close() end + if session then + session:close() + end if id then cache[id] = nil end |