GORM Playground Link

https://github.com/go-gorm/playground/pull/698

Description

I'm having an issue in my code when switching to the new gorm.io packages where I pass in a few arguments that are binary, but the first argument is not interpreted that way. I tried to recreate this as best as I could in the playground. This is the output of the query in my actual code with me changing out some variable names for privacy.

SELECT  * FROM objects WHERE  id IN (94,108,231,39,177,211,74,232,190,173,75,172,220,205,107,73,'<binary>','<binary>')  AND  user_id = '<binary>' ;

these should all be seen as <binary>

Comment From: Orlion

https://github.com/go-gorm/gorm/blob/5e599a07ec6aacd85b7806805908c4a78fa0e5ce/logger/sql.go#L103-L108

From the source code, your first few parameters are printable, so they are printed out, while other parameters are not printable, so they are printed out .