This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

Lua filter clientReply on statement error

Is there a way to determine if an error occurred in the database (i.e. on an insert statement) in the Lua filter? The parameter in the clientReply function outlined in the Lua filter documentation is always nil.

Thanks.

Answer Answered by Markus Mäkelä in this comment.

Currently this is not possible. The API for the script would have to be extended to expose the actual result of the query.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.