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 (https://github.com/mysql/mysql-connector-nodejs) or mysql/@xdevapi (https://www.npmjs.com/package/@mysql/xdevapi).

Seems like you are using the mysqljs/mysql driver (https://github.com/mysqljs/mysql), which is not an official MySQL product. I would encourage you to use the project issue tracker (https://github.com/mysqljs/mysql/issues) 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


Cheers

Options: ReplyQuote


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


Sorry, you can't reply to this topic. It has been closed.

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.