From: Matt S Trout Date: Wed, 26 Sep 2007 03:27:26 +0000 (+0000) Subject: typos X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf5af6825f9dc6d5320f1085354ed35c9da1da7d;p=dbsrgits%2FDBIx-Class-Historic.git typos --- diff --git a/lib/DBIx/Class/JDBICompat/Handle.pm b/lib/DBIx/Class/JDBICompat/Handle.pm index 9405d15..79ad4c9 100755 --- a/lib/DBIx/Class/JDBICompat/Handle.pm +++ b/lib/DBIx/Class/JDBICompat/Handle.pm @@ -269,11 +269,7 @@ disconnect from your DBI datasource sub disconnect { my $self = shift; - if ( $self->dbh ) { - return ( $self->dbh->disconnect() ); - } else { - return; - } + $self->schema->storage->disconnect; } =head2 dbh [HANDLE] @@ -667,7 +663,7 @@ sub rollback { $self->schema->storage->txn_rollback; if ($force) { - while ($self->schema->storage->transcation_depth) { + while ($self->schema->storage->transaction_depth) { $self->schema->storage->txn_rollback; } } @@ -693,7 +689,7 @@ Return the current depth of the faked nested transaction stack. sub transaction_depth { my $self = shift; - return $self->schema->storage->tansaction_depth; + return $self->schema->storage->transaction_depth; } =head2 apply_limits STATEMENTREF ROWS_PER_PAGE FIRST_ROW