view plugins/sql.lib.lua @ 7093:388281be2bc7

net.dns: Remember query only after it was sent, in case it was not (fixes #598)
author Kim Alvefur <zash@zash.se>
date Thu, 21 Jan 2016 22:26:46 +0100
parents 9916f0a2d178
children
line wrap: on
line source

local cache = module:shared("/*/sql.lib/util.sql");

if not cache._M then
	prosody.unlock_globals();
	cache._M = require "util.sql";
	prosody.lock_globals();
end

return cache._M;