Files
MaxScale/system-test/infinite_loop.lua
Esa Korhonen 08f5174915 MXS-2900 Rename maxscale-system-test directory to system-test
A link with the old directory name is provided.
2020-07-28 15:24:27 +03: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