mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_storage_sql2, util.sql: Set character encoding on every connect
This commit is contained in:
parent
f361945594
commit
655e1cde09
2 changed files with 1 additions and 2 deletions
|
@ -156,6 +156,7 @@ function engine:connect()
|
|||
dbh:autocommit(false); -- don't commit automatically
|
||||
self.conn = dbh;
|
||||
self.prepared = {};
|
||||
self:set_encoding();
|
||||
return true;
|
||||
end
|
||||
function engine:execute(sql, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue