summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2020-12-31 21:47:50 -0600
committer cracyc <cracyc@users.noreply.github.com>2020-12-31 21:47:50 -0600
commitd961efa925c092a89dffd0866792c8f129f15552 (patch)
tree47082a3657f499d787ec1e2eef0c8834de037d78 /plugins
parente5b66d27d899dd77b37e52aef20a7ec6e9678b63 (diff)
plugins/data: remove logging and fix query
Diffstat (limited to 'plugins')
-rw-r--r--plugins/data/data_history.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/data/data_history.lua b/plugins/data/data_history.lua
index f80f5a76959..c5f79875254 100644
--- a/plugins/data/data_history.lua
+++ b/plugins/data/data_history.lua
@@ -7,7 +7,6 @@ local function init()
local filepath
local dbver
local fh
- local slaxml = require("xml")
for path in mame_manager.ui.options.entries.historypath:value():gmatch("([^;]+)") do
filepath = emu.subst_env(path) .. "/" .. file
@@ -59,10 +58,8 @@ local function init()
for line in fh:lines() do
local match = line:match("<history([^>]*)>")
- print(line, match)
if match then
match = match:match("version=\"([^\"]*)\"")
- print(match)
if match then
ver = match
break
@@ -101,6 +98,7 @@ local function init()
local lasttag
local entry = {}
local rowid
+ local slaxml = require("xml")
local parser = slaxml:parser{
startElement = function(name)
@@ -161,7 +159,7 @@ function dat.check(set, softlist)
stmt:bind_values(set, softlist)
else
stmt = db.prepare("SELECT f.data FROM \"" .. file .. "_idx\" AS fi, \"" .. file .. [["
- AS f WHERE fi.name = ? AND fi.list = NULL AND f.rowid = fi.data]])
+ AS f WHERE fi.name = ? AND fi.list ISNULL AND f.rowid = fi.data]])
stmt:bind_values(set)
end
if stmt:step() == db.ROW then