1 package # hide from PAUSE
2 DBIx::Class::Storage::DBI::ADO;
4 use base 'DBIx::Class::Storage::DBI';
12 # XXX This should be using an OpenSchema method of some sort, but I don't know
14 # Current version is stolen from Sybase.pm
16 my $dbtype = @{$self->_get_dbh
17 ->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})
21 my $subclass = "DBIx::Class::Storage::DBI::ADO::${dbtype}";
22 if ($self->load_optional_class($subclass) && !$self->isa($subclass)) {
23 bless $self, $subclass;
29 # Here I was just experimenting with ADO cursor types, left in as a comment in
30 # case you want to as well. See the DBD::ADO docs.
32 # my ($self, $dbh, $sql) = @_;
34 # my $sth = $self->disable_sth_caching
35 # ? $dbh->prepare($sql, { CursorType => 'adOpenStatic' })
36 # : $dbh->prepare_cached($sql, { CursorType => 'adOpenStatic' }, 3);
38 # $self->throw_exception($dbh->errstr) if !$sth;