plugins/mod_storage_sql.lua
changeset 13233 bb7177efbf41
parent 13227 b88b3e414550
child 13245 0419de4e4db1
--- a/plugins/mod_storage_sql.lua	Tue Jul 18 12:36:47 2023 +0200
+++ b/plugins/mod_storage_sql.lua	Tue Jul 18 12:38:16 2023 +0200
@@ -908,7 +908,7 @@
 	if not engine then
 		module:log("debug", "Creating new engine %s", db_uri);
 		engine = sql:create_engine(params, function (engine) -- luacheck: ignore 431/engine
-			if module:get_option("sql_manage_tables", true) then
+			if module:get_option_boolean("sql_manage_tables", true) then
 				-- Automatically create table, ignore failure (table probably already exists)
 				-- FIXME: we should check in information_schema, etc.
 				create_table(engine);