Software / code / prosody
Comparison
util/sql.lua @ 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 |
| parent | 5890:544ca3d94596 |
| child | 5912:f6145e894569 |
comparison
equal
deleted
inserted
replaced
| 5908:081a91507e4f | 5910:a19b3646d5f0 |
|---|---|
| 311 end); | 311 end); |
| 312 local row = ok and charsets(); | 312 local row = ok and charsets(); |
| 313 charset = row and row[1] or charset; | 313 charset = row and row[1] or charset; |
| 314 end | 314 end |
| 315 self.charset = charset; | 315 self.charset = charset; |
| 316 return self:transaction(function() return engine:execute(set_names_query:format(charset)); end); | 316 return self:transaction(function() return self:execute(set_names_query:format(charset)); end); |
| 317 end | 317 end |
| 318 local engine_mt = { __index = engine }; | 318 local engine_mt = { __index = engine }; |
| 319 | 319 |
| 320 local function db2uri(params) | 320 local function db2uri(params) |
| 321 return build_url{ | 321 return build_url{ |