MySQL Forums
Forum List  »  Connector/Node.js

Re: Error: ER_EMPTY_QUERY: Query was empty
Posted by: Rui Quelhas
Date: January 02, 2023 12:42PM

Hi Thijmen,

this forum is for the MySQL X DevAPI Connector for Node.js aka as mysql-connector-nodejs ( or mysql/@xdevapi (

Seems like you are using the mysqljs/mysql driver (, which is not an official MySQL product. I would encourage you to use the project issue tracker ( to report the issue understand what the root cause might be.

In any case, looking at your code, conceptually, the "INSERT" statement looks ok. There are no schema violations, so I'm assuming everything is fine from that standpoint.

But without a proper character encoding and formatting, it's not easier to understand exactly what the issue might be, because I'm not sure what is supposed to be verbatim or not.

Hope it helps


Options: ReplyQuote

Written By
Re: Error: ER_EMPTY_QUERY: Query was empty
January 02, 2023 12:42PM

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.