diff options
author | Kim Alvefur <zash@zash.se> | 2013-06-23 19:27:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-06-23 19:27:49 +0200 |
commit | 12877796b2c8f0a4a9c6d3396da7a45a983a0db1 (patch) | |
tree | 7f4983eb3046db3e2304a6300ac5127b05a3fe7e | |
parent | 34fd62b3ff8335d867aff6aecfb95b6b73a64a93 (diff) | |
download | prosody-12877796b2c8f0a4a9c6d3396da7a45a983a0db1.tar.gz prosody-12877796b2c8f0a4a9c6d3396da7a45a983a0db1.zip |
mod_storage_sql2: Use correct variable (Thanks SkyBlue and Florob)
-rw-r--r-- | plugins/mod_storage_sql2.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql2.lua b/plugins/mod_storage_sql2.lua index 7d705b0b..382c0e23 100644 --- a/plugins/mod_storage_sql2.lua +++ b/plugins/mod_storage_sql2.lua @@ -85,7 +85,7 @@ local function set_encoding() 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)); |