Changeset

5910:a19b3646d5f0

util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng)
author Matthew Wild <mwild1@gmail.com>
date Sun, 10 Nov 2013 23:10:27 +0000
parents 5908:081a91507e4f
children 5911:7051dc27e531 5912:f6145e894569
files util/sql.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/sql.lua	Sun Nov 10 18:49:34 2013 +0000
+++ b/util/sql.lua	Sun Nov 10 23:10:27 2013 +0000
@@ -313,7 +313,7 @@
 		charset = row and row[1] or charset;
 	end
 	self.charset = charset;
-	return self:transaction(function() return engine:execute(set_names_query:format(charset)); end);
+	return self:transaction(function() return self:execute(set_names_query:format(charset)); end);
 end
 local engine_mt = { __index = engine };