Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

DataMapper::Repository#read with an invalid query returns an ambiguous result #16

@halorgium

Description

@halorgium

If you ask a Repository to read the records for a valid query which returns an empty set, you get an empty set.
If you ask a Repository to read the records for an invalid query, you get an empty set.

It is impossible to determine the difference between these results.

Can we change the behaviour for an invalid query to raise an error?

https://github.com/datamapper/dm-core/blob/master/lib/dm-core/repository.rb#L160-163

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions