Software /
code /
prosody
Changeset
5711:254a9420e53d
mod_storage_sql2: Use correct variable (Thanks SkyBlue and Florob)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Jun 2013 19:27:49 +0200 |
parents | 5703:ea00fc524b95 |
children | 5712:177fe6978ba8 5714:520671c3159c |
files | plugins/mod_storage_sql2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_storage_sql2.lua Tue Jun 18 12:14:46 2013 +0100 +++ b/plugins/mod_storage_sql2.lua Sun Jun 23 19:27:49 2013 +0200 @@ -85,7 +85,7 @@ module:log("warn", "Found %d columns in prosody table requiring encoding change, updating now...", n_bad_columns); local fix_column_query1 = "ALTER TABLE `prosody` CHANGE `%s` `%s` BLOB;"; local fix_column_query2 = "ALTER TABLE `prosody` CHANGE `%s` `%s` %s CHARACTER SET 'utf8' COLLATE 'utf8_bin';"; - for row in success:rows() do + for row in result:rows() do local column_name, column_type = unpack(row); engine:execute(fix_column_query1:format(column_name, column_name)); engine:execute(fix_column_query2:format(column_name, column_name, column_type));