Subject: | Properties ignored for select() without limit |
Date: | Sat, 24 Oct 2009 17:22:07 +0200 |
To: | bug-SQL-Abstract-Limit [...] rt.cpan.org |
From: | Gunnar Hansson <gunnar [...] hanssonlarsson.se> |
This is related to bug #40012:
This happens only when you're not passing in a true $limit to the
select() method. The problem lies in line 167:
return SQL::Abstract->new->select( $table, $fields, $where,
$order ) unless $rows;
The new SQL::Abstract object needs to be passed the parameters passed
in to $self. This would fix it:
return SQL::Abstract->new(%{$self})->select( $table, $fields,
$where, $order ) unless $rows;
or perhaps better:
return $self->SQL::Abstract::select($table, $fields, $where,
$order) unless($rows);
Including patch for the latter.
* SQL-Abstract-Limit-0.141
* Perl 5.8.8 for darwin (mac os x)
Message body is not shown because sender requested not to inline it.
--
Gunnar Hansson
Co-founder
Hansson & Larsson AB
+46 762 56 17 27