aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-12 17:26:13 +0200
committerKim Alvefur <zash@zash.se>2017-04-12 17:26:13 +0200
commitc49d0d5b777e3b3358582afd1d97e6b86e956fef (patch)
tree5dddc4dd1b0a200adee06a20f93c573ecdcf82d9 /plugins/mod_storage_sql.lua
parent91baabfede04fcead2849a35d71a706c9042d074 (diff)
downloadprosody-c49d0d5b777e3b3358582afd1d97e6b86e956fef.tar.gz
prosody-c49d0d5b777e3b3358582afd1d97e6b86e956fef.zip
mod_storage_sql: Raise error if encoding check query fails
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 5e93db57..b49551d6 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -489,7 +489,7 @@ local function upgrade_table(engine, params, apply_changes) -- luacheck: ignore
check_encoding_query = check_encoding_query:format(engine.charset, engine.charset);
-- FIXME Is it ok to ignore the return values from this?
engine:transaction(function()
- local result = engine:execute(check_encoding_query);
+ local result = assert(engine:execute(check_encoding_query));
local n_bad_columns = result:rowcount();
if n_bad_columns > 0 then
changes = true;