We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to update a record using .update method
.update
knex("places") .update({ groupId: group.id }) .where('id', place.id);
When I executed the script, migration error. When I checked the query log, there is a missing clause "columnToBeUpdate = value" that causes the bug.
columnToBeUpdate = value
The query:
"update "places" set where "id" = $1"
Is this true for all or I've missed an updated documentation when executing an update?
The text was updated successfully, but these errors were encountered:
Turns out I did miss something.
group is empty, that's why it was skipped.
group
Maybe we can have an error handling here if all of the parameters were skipped before executing the actual query?
Sorry, something went wrong.
No branches or pull requests
I'm trying to update a record using
.update
methodWhen I executed the script, migration error. When I checked the query log, there is a missing clause "
columnToBeUpdate = value
" that causes the bug.The query:
Is this true for all or I've missed an updated documentation when executing an update?
The text was updated successfully, but these errors were encountered: