Closed na-stewart closed 3 years ago
You have to start the query using q:start()
You have to start the query using q:start()
Even with start it doesn't work. I forgot to put it in the issue code by mistake.
Here is a revised test method below.
function sunsetsync.test()
print('test query being executed.')
local query = sunsetsync.mysql:query("SELECT 1, 2, 3") -- In mysqloo 9 a query can be started before the database is connected
function query:onSuccess(data)
print('query executed successfully')
end
query:start()
end
On Success is still not executed.
Would using MySQL 8.0.20 cause this issue? and if so what version should I use instead.
That should not cause an issue, but try using the latest beta version. Are you sure that you successfully connected to the database?
That should not cause an issue, but try using the latest beta version. Are you sure that you successfully connected to the database?
I am positive as the query's go through successfully (such as inserting and creating tables), but the callbacks are never called.
I'll give using the beta version a try.
Using the beta 64 bit linux version of MySQLOO does not get imported and throws an error in my addon. I'm gonna try decreasing the MySQL version from 8 to 5.
After testing on MySQL version 5, query callbacks are still not functional.
The callbacks are only called if there's a player on the server (as they rely on the think hook). So that is also something to keep in mind.
The callbacks are only called if there's a player on the server (as they rely on the think hook). So that is also something to keep in mind.
Yeah, that did it. Thanks.
I've been trying to get query callbacks working and none of them have for success or failure. This happens while selecting, updating, or inserting. This is a addon breaking problem that I'd love to get to the bottom of ASAP. Thank you! :)
I want to make clear, all querys have been working. However, I have been unable to receive data from them.