rocket_auth icon indicating copy to clipboard operation
rocket_auth copied to clipboard

Database error during password change (tokio_postgres)

Open varpeti opened this issue 10 months ago • 0 comments

It causes a database error during a password change:

database-db-1  | 2023-08-13 22:02:05.531 UTC [1462] ERROR:  syntax error at or near "table" at character 9
database-db-1  | 2023-08-13 22:02:05.531 UTC [1462] STATEMENT:
database-db-1  | 	UPDATE table SET
database-db-1  | 	    email = $2,
database-db-1  | 	    password = $3,
database-db-1  | 	    is_admin = $4,
database-db-1  | 	WHERE
database-db-1  | 	    id = $1

I think under the tokio_postgres implementation the UPDATE_USER sql code is wrong.

varpeti avatar Aug 13 '23 22:08 varpeti