author | Waqas Hussain <waqas20@gmail.com> |
Fri, 30 Nov 2012 08:50:03 +0500 | |
changeset 5209 | f5d121846d53 |
parent 5207 | c5edb08fc7cb |
child 5210 | 862a6fae05e7 |
--- a/plugins/mod_storage_sql.lua Thu Nov 29 07:38:00 2012 +0500 +++ b/plugins/mod_storage_sql.lua Fri Nov 30 08:50:03 2012 +0500 @@ -228,7 +228,8 @@ return ...; end local function commit(...) - if not connection:commit() then return nil, "SQL commit failed"; end + local success,err = connection:commit(); + if not success then return nil, "SQL commit failed: "..tostring(err); end return ...; end