Quite hard to pinpoint the exact cause but this starts randomly happening at some point
local q = db:query("SELECT 1")
print("r", pcall(function()q:run() end ))
prints r false C++ exception
I think this is a data race issue. The whole DatabaseQuery::last_query thing seems quite susceptible to dataraces. I believe adding a ConcurrentQueue for incoming async queries would improve that. I can see if I can create a patch for it at some point later.
Quite hard to pinpoint the exact cause but this starts randomly happening at some point
prints
r false C++ exceptionI think this is a data race issue. The whole
DatabaseQuery::last_querything seems quite susceptible to dataraces. I believe adding a ConcurrentQueue for incoming async queries would improve that. I can see if I can create a patch for it at some point later.