Closed sheldondz closed 2 years ago
Hi. The problem here is that encode(token_id, 'hex')
changes the column name from token_id
to encode
. So the solution is to explicitly set an alias in the SELECT statement:
sqlQuery := `SELECT encode(token_id,'hex') AS "token_id" from users`
Feel free to reopen the issue if you still have problems.
Get the following error where token_id is bytea type