X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FSybase.pm;h=7e68b38f1aadc44d9f98efd5f0451c67b361ddf2;hb=2eef86336a37040fc939429b1003cd93e7c0a360;hp=35608b00d34e027ec83a2b99b586de2d287c5e63;hpb=e97a6ee245047f4caabc1d65cd2c94b2c9c436e0;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBI/Sybase.pm b/lib/DBIx/Class/Storage/DBI/Sybase.pm index 35608b0..7e68b38 100644 --- a/lib/DBIx/Class/Storage/DBI/Sybase.pm +++ b/lib/DBIx/Class/Storage/DBI/Sybase.pm @@ -48,7 +48,7 @@ sub _rebless { if (ref($self) eq 'DBIx::Class::Storage::DBI::Sybase') { my $dbtype = eval { - @{$self->dbh->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})}[2] + @{$self->_get_dbh->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})}[2] } || ''; my $exception = $@; @@ -419,14 +419,13 @@ sub _insert_blobs { for my $col (keys %$blob_cols) { my $blob = $blob_cols->{$col}; - my $sth; my %where = map { ($_, $row{$_}) } @primary_cols; my $cursor = $source->resultset->search(\%where, { select => [$col] })->cursor; $cursor->next; - $sth = $cursor->sth; + my $sth = $cursor->sth; eval { do { @@ -553,6 +552,15 @@ sub _svp_rollback { 1; +=head1 Schema::Loader Support + +There is an experimental branch of L that will +allow you to dump a schema from most (if not all) versions of Sybase. + +It is available via subversion from: + + http://dev.catalyst.perl.org/repos/bast/branches/DBIx-Class-Schema-Loader/mssql_tweaks + =head1 FreeTDS This driver supports L compiled against FreeTDS