Files
MaxScale/maxscale-system-test/infinite_loop.lua
2018-11-14 16:20:42 +02:00

28 lines
435 B
Lua

function createInstance()
end
function newSession(a, b)
end
function closeSession()
end
function routeQuery(sql)
print("LUA: routeQuery")
print(sql)
if (string.find(sql, "LUA_INFINITE_LOOP"))
then
while (true)
do
end
end
end
function clientReply()
print("LUA: clientReply")
end
function diagnostic()
return "Lua routeQuery will not return if sql = select LUA_INFINITE_LOOP"
end