- Added the arrayRef() method to WebGUI::SQL::ResultSet, which is 12% faster

than the array() method.
 - Added more tests to the test suite.
This commit is contained in:
JT Smith 2006-07-25 17:58:54 +00:00
parent 03b4b0ed33
commit 6766c63731
4 changed files with 49 additions and 2 deletions

View file

@ -59,6 +59,19 @@ sub array {
return $self->sth->fetchrow_array() or $self->db->session->errorHandler->fatal("Couldn't fetch array. ".$self->errorMessage);
}
#-------------------------------------------------------------------
=head2 arrayRef ( )
Returns the next row of data as an array reference. Note that this is 12% faster than array().
=cut
sub arrayRef {
my $self = shift;
return $self->sth->fetchrow_arrayref() or $self->db->session->errorHandler->fatal("Couldn't fetch array. ".$self->errorMessage);
}
#-------------------------------------------------------------------