Closed RAprogramm closed 9 months ago
I think your code has some syntax errors. Doesn't look like it would compile with Go :)
i believe you meant to put an issue on this project - https://github.com/launchbadge/sqlx
I think your code has some syntax errors. Doesn't look like it would compile with Go :)
i believe you meant to put an issue on this project - https://github.com/launchbadge/sqlx
Thank you for bringing it to my attention! turns out I created in the wrong repository.
but if you have any ideas on how to make a request correctly, let me know
YES! I FOUND SOLUTION!
here is right query syntax:
r#"UPDATE users SET role=($1::text)::user_role, updated_at=$2 WHERE id=$3 RETURNING id, name, email, verified, created_at, password, updated_at, role as "role:UserRole""#,
i have the next one
my problem in
updated_user
query. I didn't find any documentation about UPDATE query with ENUM in db.this is migration file.
i know that my problem is wrong query syntax. i'he already tried this
this
this
and many other variations
Maybe someone can shed some light on this situation?