LibreCat / Catmandu-DBI

A Catmandu::Store plugin for DBI based interfaces
Other
0 stars 1 forks source link

select fails when key is not a mapped field #10

Closed nicolasfranck closed 9 years ago

nicolasfranck commented 9 years ago

TODO for branch feature-mapping:

$bag->select(title => "Nicolas")

will fail if "title" is not included as a mapped field, because it will issue an sql query on that non-existant field.

Solution: check mapping for given field, and if it does not exist, then do full scan. Document this slow behaviour.

nicolasfranck commented 9 years ago

Never mind, it already worked ;-) Sorry for bugging