Implemented rowsAffected(), which will return the number of database rows that were affected by the last execution of the statement associated with the results frame.

This commit is contained in:
ian%hixie.ch 2002-05-26 15:00:56 +00:00
Родитель 00267aa804
Коммит f5ec789f5f
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -49,6 +49,11 @@ sub lastError {
return $self->handle->err;
}
sub rowsAffected {
my $self = shift;
return $self->handle->rows;
}
sub row {
my $self = shift;
$self->assert($self->executed, 1, 'Tried to fetch data from an unexecuted statement');