When using the Postgres data store, calling find_by(some_field: "some-field-that-does-not-exist") results in an <ArgumentError: invalid tuple number 0> due to the .first method not returning in time if result.num_tuples.zero? as it is designed in the other methods such as find, delete, set
When using the Postgres data store, calling
find_by(some_field: "some-field-that-does-not-exist")
results in an<ArgumentError: invalid tuple number 0>
due to the.first
method not returning in time ifresult.num_tuples.zero?
as it is designed in the other methods such asfind
,delete
,set