[SearchBuilder-devel] [PATCH] OrderBy changes

Robert Spier rspier at pobox.com
Tue Nov 1 17:33:56 EST 2005



(Selective snipping)

> +    my $clause = '';
> +    foreach my $row ( @args ) {
> +    $clause = "ORDER BY$clause" if $clause;

Is $clause guaranteed to have whitespace at the beginning?


> +    if( ($self->{'order_clause'} || '') ne $clause ) {
> +	$self->RedoSearch();

Indentation bad.
Also, IIRC, RT generally puts a space after the if.

-R


More information about the SearchBuilder-devel mailing list