Software /
code /
prosody
Comparison
plugins/mod_storage_sql.lua @ 8038:cd6cef579e82
mod_storage_sql: Remove unused return values (should those actually be used?)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Apr 2017 19:47:02 +0200 |
parent | 8037:5a802653d50d |
child | 8039:1f4bd8009961 |
child | 8050:c0f81dea4662 |
comparison
equal
deleted
inserted
replaced
8037:5a802653d50d | 8038:cd6cef579e82 |
---|---|
485 SELECT `COLUMN_NAME`,`COLUMN_TYPE`,`TABLE_NAME` | 485 SELECT `COLUMN_NAME`,`COLUMN_TYPE`,`TABLE_NAME` |
486 FROM `information_schema`.`columns` | 486 FROM `information_schema`.`columns` |
487 WHERE `TABLE_NAME` LIKE 'prosody%%' AND ( `CHARACTER_SET_NAME`!='%s' OR `COLLATION_NAME`!='%s_bin' ); | 487 WHERE `TABLE_NAME` LIKE 'prosody%%' AND ( `CHARACTER_SET_NAME`!='%s' OR `COLLATION_NAME`!='%s_bin' ); |
488 ]]; | 488 ]]; |
489 check_encoding_query = check_encoding_query:format(engine.charset, engine.charset); | 489 check_encoding_query = check_encoding_query:format(engine.charset, engine.charset); |
490 success,err = engine:transaction(function() | 490 -- FIXME Is it ok to ignore the return values from this? |
491 engine:transaction(function() | |
491 local result = engine:execute(check_encoding_query); | 492 local result = engine:execute(check_encoding_query); |
492 local n_bad_columns = result:rowcount(); | 493 local n_bad_columns = result:rowcount(); |
493 if n_bad_columns > 0 then | 494 if n_bad_columns > 0 then |
494 changes = true; | 495 changes = true; |
495 if apply_changes then | 496 if apply_changes then |