[rt-devel] Odd behaviour in Transactions->Limit()

Bruce Campbell bruce_campbell at ripe.net
Sat Feb 2 08:06:28 EST 2002


On Sat, 2 Feb 2002, Bruce Campbell wrote:

> This may also be SearchBuilder oddness.

Nope, it was my failing to include an ENTRYAGGREGATOR, ie:

> 	$Transactions->Limit( FIELD => 'Created', VALUE =>
> $begindate->ISO, OPERATOR = '>=' );
> 	$Transactions->Limit( FIELD => 'Created', VALUE =>
> $enddate->ISO, OPERATOR = '<=' );

also needs 'ENTRYAGGREGATOR => "AND"' to avoid using the default 'or'.

Very definitely my bad.  Thanks to Jesse for bugging me to turn on query
logging ( must remember to turn it off before the weekend finishes ).

-- 
                             Bruce Campbell                            RIPE
                   Systems/Network Engineer                             NCC
                 www.ripe.net - PGP562C8B1B                      Operations





More information about the Rt-devel mailing list