[Dbix-class] ANNOUNCE: SQL::Abstract 1.60

Peter Rabbitson rabbit+dbic at rabbit.us
Tue Sep 22 11:06:52 GMT 2009


Peter Rabbitson wrote:
> Will Hawes wrote:
>> Ah - I had expected the following to work, but it doesn't:
>>
>> my $where = {
>>     datetime => {
>>         "between",
>>         [
>>             \[ "to_date(?, 'YYYYMMDD HH24:MM:SS')", "$start 00:00:00" ],
>>             \[ "to_date(?, 'YYYYMMDD HH24:MM:SS')", "$end 00:00:00" ]
>>         ]
>>     }
>> };
>>
>> It seems that while a reference to an arrayref can be used with
>> "between", elements within said arrayref are currently limited to
>> either scalars or references to scalars. Maybe a candidate for a
>> patch?
>>
> 
> SQL::Abstract 1.59 just released on CPAN should nicely support all
> combinations of the above.
> 

And SQL::Abstract 1.60 follows suit, as changes to the tester exposed subtle
problems with the tokenizer (no functional changes between 1.59 and 1.60).



More information about the DBIx-Class mailing list