onyxframework / sql

A delightful SQL ORM ☺️
https://api.onyxframework.com/sql
MIT License
91 stars 7 forks source link

Bytes columns aren't fetched #95

Closed vladfaust closed 5 years ago

vladfaust commented 5 years ago
job = repo.query(Model::Job
  .select(:id, :payload)
  .where(id: job_id)
).first

pp! job.payload # nil, but actual <binary data> in the DB
vladfaust commented 5 years ago

False alarm, <binary data> in PostgreSQL can also mean empty bytes. There was an error in my application code.