Open bryanp opened 11 months ago
FWIW I did find a workaround:
where("key = :key", key: PG::TextEncoder::Bytea.new.encode(SecureRandom.bytes(32)))
Curious if you think this should have better built-in support. If so, I'd be happy to brainstorm potential solutions.
I'm using
mini_sql
to query abytea
column in postgres, but I'm having trouble getting the query to run. Here's the error:Using
pg
directly, I can do something like this:However I'm not too sure the best way to go about solving this using
mini_sql
. Note that I can get the samePG::CharacterNotInRepertoire
error usingpg
directly with the following approach:Curious if there's a way around this issue or if additional support is needed.