You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
Please put x inside of the box that matches your issue.
I am using the latest release
I have referenced previously reported issues
I have referenced available documentation and cannot resolve the issue
I'm certain this is an issue with oxymysql, and not with my resource
Describe the bug
Using the callback-style functions for MySQL operations always return true in pcall, and have no other method of error handling. The promise-style functions do not have this issue, and will return false in pcall, with error result.
In this particular instance, the INSERT is attempted on a table that has not yet been created.
The above returns true
Replacing MySQL.insert with MySQL.insert.await returns false and RESOURCENAME was unable to execute a query!
Expected behavior
Either the callback function should always be called and support error results as a second argument, or the callback should not be called and the MySQL function should return similarly to the promise counterpart.
Additional context
Add any other context about the problem here.