diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua b/Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua index 4473f897185..b69e397d2ee 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/util-sql-loggers.lua @@ -53,16 +53,15 @@ loggers.totype = totype loggers.fromtype = fromtype local template = [[ - CREATE TABLE IF NOT EXISTS %basename% ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `time` int(11) NOT NULL, - `type` int(11) NOT NULL, - `action` varchar(15) NOT NULL, - `data` longtext, - PRIMARY KEY (`id`), - UNIQUE KEY `id_unique_key` (`id`) - ) - DEFAULT CHARSET = utf8 ; +CREATE TABLE IF NOT EXISTS %basename% ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `time` int(11) NOT NULL, + `type` int(11) NOT NULL, + `action` varchar(15) NOT NULL, + `data` longtext, + PRIMARY KEY (`id`), + UNIQUE KEY `id_unique_key` (`id`) +) DEFAULT CHARSET = utf8 ; ]] local sqlite_template = [[ @@ -78,6 +77,7 @@ local sqlite_template = [[ function loggers.createdb(presets,datatable) local db = checkeddb(presets,datatable) + db.execute { template = db.usedmethod == "sqlite" and sqlite_template or template, variables = { |