# HG changeset patch # User Kim Alvefur # Date 1492010773 -7200 # Node ID a4dd08fd64cfbe6c3760ff1486d130fdef3c6daa # Parent 7361412a966436f83ca340e766378c8dc5ae5f9e mod_storage_sql: Raise error if encoding check query fails diff -r 7361412a9664 -r a4dd08fd64cf plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Mon Apr 10 23:13:39 2017 +0200 +++ b/plugins/mod_storage_sql.lua Wed Apr 12 17:26:13 2017 +0200 @@ -489,7 +489,7 @@ 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;