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