-
I can't seem to use the sqlx::query!(
"UPDATE lists SET
title = COALSESCE($1, title),
description = COALESCE($2, description),
color = COALESCE($3, color)
WHERE user_id = $4",
input.title.to_string(),
input.description.to_string(),
input.color.to_string(),
auth_user.id,
)
.. |
Beta Was this translation helpful? Give feedback.
Answered by
Atlinx
Jul 19, 2023
Replies: 1 comment
-
Whoops I misspelled |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Atlinx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whoops I misspelled
coalesce
in my query!