in reply to Re^4: SQL::Abstract 'between' clause (about done)
in thread SQL::Abstract 'between' clause (about done)
To create the data you see in the POD with scalar assignements you would have to write this:
$where{user}= 'nwiger'; $where{completion_date}{-not_between}= ['2002-10-01', '2003-02-06'];
What would be a problem is if you used this as well:
$where{completion_date}= 5;
Because $where{completion_date} can't be pointer to a hash and scalar value at the same time. But nothing prevents you from storing further scalar values or hash pointers in $where{thingy} or $where{stuff} or $where{completion_date}{depperstuff}
A big help might be to watch Data::Dumper output of %where after you execute each of the above statements
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: SQL::Abstract 'between' clause (about done)
by Anonymous Monk on Nov 22, 2011 at 14:52 UTC | |
by jethro (Monsignor) on Nov 22, 2011 at 19:48 UTC | |
by Anonymous Monk on Nov 23, 2011 at 10:41 UTC |