Software /
code /
prosody
Changeset
5919:d1cc67ed0767
util.sql: Fix previous commit
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Nov 2013 11:38:52 +0100 |
parents | 5918:06106726a1f0 |
children | 5920:0e5a38ba4c15 5922:dd11480ecd47 |
files | util/sql.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sql.lua Tue Nov 12 11:13:45 2013 +0100 +++ b/util/sql.lua Tue Nov 12 11:38:52 2013 +0100 @@ -308,7 +308,7 @@ if driver == "MySQL" then set_names_query = set_names_query:gsub(";$", " COLLATE 'utf8_bin';"); local ok, charsets = self:transaction(function() - return self:select"SELECT `CHARACTER_SET_NAME` FROM `CHARACTER_SETS` WHERE `information_schema`.`CHARACTER_SET_NAME` LIKE 'utf8%' ORDER BY MAXLEN DESC LIMIT 1;"; + return self:select"SELECT `CHARACTER_SET_NAME` FROM `information_schema`.`CHARACTER_SETS` WHERE `CHARACTER_SET_NAME` LIKE 'utf8%' ORDER BY MAXLEN DESC LIMIT 1;"; end); local row = ok and charsets(); charset = row and row[1] or charset;