aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-01 19:47:02 +0200
committerKim Alvefur <zash@zash.se>2017-04-01 19:47:02 +0200
commit67572368f294b4a1f018ab78d42bdf7cf12e7d8c (patch)
tree38dce5aaed3c33102a1ad658535aa394494c7819 /plugins/mod_storage_sql.lua
parentdd86b147bf0e4a6a606b2c4c1b3896776e81d98e (diff)
downloadprosody-67572368f294b4a1f018ab78d42bdf7cf12e7d8c.tar.gz
prosody-67572368f294b4a1f018ab78d42bdf7cf12e7d8c.zip
mod_storage_sql: Remove unused return values (should those actually be used?)
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r--plugins/mod_storage_sql.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index da0f471c..a04a39a0 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -487,7 +487,8 @@ local function upgrade_table(engine, params, apply_changes) -- luacheck: ignore
WHERE `TABLE_NAME` LIKE 'prosody%%' AND ( `CHARACTER_SET_NAME`!='%s' OR `COLLATION_NAME`!='%s_bin' );
]];
check_encoding_query = check_encoding_query:format(engine.charset, engine.charset);
- success,err = engine:transaction(function()
+ -- FIXME Is it ok to ignore the return values from this?
+ engine:transaction(function()
local result = engine:execute(check_encoding_query);
local n_bad_columns = result:rowcount();
if n_bad_columns > 0 then