From 2d59206551b8daf44888f8c3176e70911845b170 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 11 Dec 2014 09:18:39 +0100 Subject: mod_storage_sql2, util.sql: Set character encoding on every connect --- util/sql.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'util') 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, ...) -- cgit v1.2.3