plugins/mod_storage_sql2.lua
changeset 6758 b80202ad47e8
parent 6757 c72b00dade25
child 6759 2e75b94e3a1e
equal deleted inserted replaced
6757:c72b00dade25 6758:b80202ad47e8
   374 		if not success then
   374 		if not success then
   375 			module:log("error", "Failed to check/upgrade database encoding: %s", err or "unknown error");
   375 			module:log("error", "Failed to check/upgrade database encoding: %s", err or "unknown error");
   376 			return false;
   376 			return false;
   377 		end
   377 		end
   378 	end
   378 	end
       
   379 	return changes;
   379 end
   380 end
   380 
   381 
   381 local function normalize_params(params)
   382 local function normalize_params(params)
   382 	if params.driver == "SQLite3" then
   383 	if params.driver == "SQLite3" then
   383 		params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite");
   384 		params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite");