projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.x509: Tell LuaSec we want UTF-8 data
[prosody.git]
/
util
/
sql.lua
diff --git
a/util/sql.lua
b/util/sql.lua
index 5a1dda5d41d3261885a0a8f5f919b42c76bc2202..453597da3f117ded9c1f06ef4df5017afdb839eb 100644
(file)
--- a/
util/sql.lua
+++ b/
util/sql.lua
@@
-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, ...)