in reply to Querying 2 Values Form 1 Column in DBIx::Class
Untested but if I understand the question (your examples make it odd... you want OR, I think, not AND), this should do–
my @results = $schema->resultset('People1') ->search({ -or => [ Name => { like => '%Franklin%' }, Name => { like => '%Linsey%' } ] });
Update, I understand now. To get AND, just s/-or/-and/ as poj showed. Both orders/nesting of syntax should work fine in this simple case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Querying 2 Values Form 1 Column in DBIx::Class
by phildeman (Scribe) on Jan 26, 2018 at 21:41 UTC | |
by afoken (Chancellor) on Jan 27, 2018 at 19:56 UTC | |
by erix (Prior) on Jan 28, 2018 at 00:27 UTC |