Diff

plugins/mod_storage_sql.lua @ 8078:60207251863c

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 12 Apr 2017 20:59:18 +0200
parent 8074:4b403f881176
parent 8075:a4dd08fd64cf
child 8083:32898a74b9d9
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Mon Apr 10 23:16:13 2017 +0200
+++ b/plugins/mod_storage_sql.lua	Wed Apr 12 20:59:18 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;