You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql=<<~SQL select from secrets where key = $1SQLdb.exec_params(sql,[{value: SecureRandom.bytes(32),format: 1},])
However I'm not too sure the best way to go about solving this using mini_sql. Note that I can get the same PG::CharacterNotInRepertoire error using pg directly with the following approach:
sql=<<~SQL select from secrets where key = '#{SecureRandom.bytes(32)}'SQLdb.exec(sql)
Curious if there's a way around this issue or if additional support is needed.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: