MySQL Forums
Forum List  »  Connector/Node.js

Re: Value expression strings on relational table update
Posted by: Rui Quelhas
Date: February 04, 2021 05:23AM

Hi Lianto,

it seems to work fine in the MySQL Shell, as you mention, so I would say it is some kind of limitation in Connector/Node.js.

Can you please report a bug at https://bugs.mysql.com/ using the "Connector for Node.js" category?

If you need a workaround, the easiest way out is probably using SQL.

session.sql('UPDATE <table_name> SET age = age + 1 WHERE name ?')
.bind('Andy')
.execute()


Thanks

Options: ReplyQuote


Subject
Written By
Posted
Re: Value expression strings on relational table update
February 04, 2021 05:23AM


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.