Open bohrasankalp opened 9 months ago
Eq
works this way on purpose for the common case of comparing with variable values. Try:
sq.Eq{"c.channel_id": sq.Expr("v.channel_id")}
this gives error as Cannot encode squirrel.expr in simple protocol - squirrel.expr must implement driver.Valuer, pgtype.TextEncoder, or be a native type
@lann any update on this?
The update query is
UPDATE videos v SET channel = $1 FROM channels c WHERE c.channel_id = $2 AND v.channel_id = $3
Builder
This makes args as
"c.id"
&"v.channel_id"
and actually compares string