From: Rafael Kitover Date: Tue, 28 Jul 2009 04:23:54 +0000 (+0000) Subject: minor refactoring, cleanups, doc updates X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e97a6ee245047f4caabc1d65cd2c94b2c9c436e0;p=dbsrgits%2FDBIx-Class-Historic.git minor refactoring, cleanups, doc updates --- diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm index 555f0d5..35608b0 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm @@ -5,14 +5,13 @@ use warnings; use base qw/ DBIx::Class::Storage::DBI::Sybase::Base - DBIx::Class::Storage::DBI /; use mro 'c3'; use Carp::Clan qw/^DBIx::Class/; use List::Util (); __PACKAGE__->mk_group_accessors('simple' => - qw/_identity _blob_log_on_update _auto_cast _insert_txn/ + qw/_identity _blob_log_on_update auto_cast _insert_txn/ ); =head1 NAME @@ -36,10 +35,6 @@ without doing a C will work for obtainging the last insert id of an C column, instead of having to -do C in a transaction as the base Sybase driver does. When using this driver, bind variables will be interpolated (properly quoted of course) into the SQL query itself, without using placeholders. diff --git a/t/746sybase.t b/t/746sybase.t index f09f16a..9f52894 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -76,7 +76,7 @@ SQL # so we start unconnected $schema->storage->disconnect; -# inserts happen in a txn, so we make sure they can nest +# inserts happen in a txn, so we make sure it still works inside a txn too $schema->txn_begin; # test primary key handling @@ -138,7 +138,7 @@ SQL # mostly stolen from the blob stuff Nniuq wrote for t/73oracle.t SKIP: { skip 'TEXT/IMAGE support does not work with FreeTDS', 12 - if $schema->storage->_using_freetds; + if $schema->storage->using_freetds; my $dbh = $schema->storage->dbh; { @@ -161,7 +161,7 @@ SQL my $maxloblen = length $binstr{'large'}; - if (not $schema->storage->_using_freetds) { + if (not $schema->storage->using_freetds) { $dbh->{'LongReadLen'} = $maxloblen * 2; } else { $dbh->do("set textsize ".($maxloblen * 2));