aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2014-12-16 18:33:54 -0500
committerWaqas Hussain <waqas20@gmail.com>2014-12-16 18:33:54 -0500
commitf32bdb004946ee50088eb8bb0a69f244cb2a835b (patch)
treedcafd2057d83c1a967fe5381adba1478d7e22001 /util
parentb690efb23ea66e96d671fc263aea71413188394f (diff)
parent72b502bed309c90247cf578caf86791ad251b949 (diff)
downloadprosody-f32bdb004946ee50088eb8bb0a69f244cb2a835b.tar.gz
prosody-f32bdb004946ee50088eb8bb0a69f244cb2a835b.zip
Merge 0.10 -> trunk
Diffstat (limited to 'util')
-rw-r--r--util/sql.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 5a1dda5d..453597da 100644
--- 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, ...)