MySQL Forums
Forum List  »  Connector/Node.js

Re: 'Column name is required in ColumnIdentifier.'
Posted by: Rui Quelhas
Date: May 10, 2024 03:41AM

I would bet the problem is that "data.contact_via_mail" is undefined. Calling "set('contact_via_mail', undefined)" is the same as not providing a second argument, which means calling "set('contact_via_mail')". This is not allowed. Ultimately depending on what you need you can do something like the following:

set('contact_via_mail', data.contact_via_mail ?? false)
set('contact_via_mail', data.contact_via_mail ?? null)

Options: ReplyQuote


Subject
Written By
Posted
Re: 'Column name is required in ColumnIdentifier.'
May 10, 2024 03:41AM


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.