# HG changeset patch # User Matthew Wild # Date 1384125027 0 # Node ID a19b3646d5f0c4134668968adf06aedfcfbdc371 # Parent 081a91507e4f9a75919235daa25998d5ed9140cf util.sql: Fix to call execute on 'self' rather than 'engine' (thanks eisensheng) diff -r 081a91507e4f -r a19b3646d5f0 util/sql.lua --- 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 };