Comparison

plugins/mod_storage_sql.lua @ 6953:b9276d677e76

mod_storage_sql: Whitespace fix (backported from trunk)
author Matthew Wild <mwild1@gmail.com>
date Thu, 03 Dec 2015 15:02:50 +0000
parent 6951:99de8f30d99e
child 6954:400badaf1fc7
comparison
equal deleted inserted replaced
6951:99de8f30d99e 6953:b9276d677e76
105 local ok, result = engine:transaction(keyval_store_get); 105 local ok, result = engine:transaction(keyval_store_get);
106 if not ok then 106 if not ok then
107 module:log("error", "Unable to read from database %s store for %s: %s", store, username or "<host>", result); 107 module:log("error", "Unable to read from database %s store for %s: %s", store, username or "<host>", result);
108 return nil, result; 108 return nil, result;
109 end 109 end
110 return result; 110 return result;
111 end 111 end
112 function keyval_store:set(username, data) 112 function keyval_store:set(username, data)
113 user,store = username,self.store; 113 user,store = username,self.store;
114 return engine:transaction(function() 114 return engine:transaction(function()
115 return keyval_store_set(data); 115 return keyval_store_set(data);