The query callback is there to process a query result. The errno function doesn't work in a threaded callback because it works with the main thread connection. Threaded and pooled queries have their own connection.
My tests show that OnQueryError works.
Announcement
Collapse
No announcement yet.
MariaDB library
Collapse
X
-
Guest repliedOnQueryError() event function not working
Even if it would work, it is much less practical than the mariadb_errno() function
Leave a comment:
-
The code can't be licensed as open source right now.
Oh, I see what you mean. On an error, the callback is not executed because there is no result.
Would https://dev.playonset.com/wiki/OnQueryError work for you?
Leave a comment:
-
Guest repliedThanks
Who is licensing ? Onset team ?
Code:mariadb_query(DB, "SELECT * MY_ERROR", function()[INDENT]local error = mariadb_errno(DB) print(error)[/INDENT][INDENT]if error ~= 0 then[/INDENT][INDENT=2]print("ERROR")[/INDENT][INDENT]end[/INDENT] end)
Leave a comment:
-
Hi and welcome.
Do you have some code to share where the specific functions don't work. What do they return in that case?
It's not open source because of licensing right now.
Leave a comment:
-
Guest started a topic MariaDB libraryMariaDB library
Hi,
I'm developer and i'm working on an ORM open-source (with MariaDB) for this game server but somes functions like "mariadb_errno" and "mariadb_error" doesn't work.
Why mariadb library code is not open source ?
When this bug can be resolved please ?
Leave a comment: