Closed baditaflorin closed 2 years ago
Very strange; this module sends the SQL to the server for processing, so the server should be doing the same validation just like any other client.
Can you try and see if another similar client has this same issue, for example PHP, Java, Python, or any other programming language interface?
@baditaflorin you either have to start the MySQL server using the --save-updates
option or set sql_safe_updates
variable after connection is established:
https://dev.mysql.com/doc/refman/8.0/en/mysql-tips.html#safe-updates
Closing due to no response from OP. Unable to reproduce the issue. Further information or a pull request with a fix is always welcome.
When I try and run this command
using MysqlWorkbench or other clients, I will get
Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.
When I run it using
mysql
in nodeJS it will run and replace everything.Create Table and insert SQL data
run_mysql_statement.js