use base qw/DBIx::Class::Storage::DBI::NoBindVars/;
-my %noquote = map { $_ => 1 } qw(int integer);
-
-sub should_quote_data_type {
- my $self = shift;
- my ($type) = @_;
- return 0 if $noquote{$type};
- return $self->next::method(@_);
+sub _rebless {
+ my $self = shift;
+
+ my $dbtype = eval { @{$self->_dbh->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})}[2] };
+ unless ( $@ ) {
+ $dbtype =~ s/\W/_/gi;
+ my $subclass = "DBIx::Class::Storage::DBI::Sybase::${dbtype}";
+ if ($self->load_optional_class($subclass) && !$self->isa($subclass)) {
+ bless $self, $subclass;
+ $self->_rebless;
+ }
+ }
}
1;
Brandon L Black <blblack@gmail.com>
+Justin Hunter <justin.d.hunter@gmail.com>
+
=head1 LICENSE
You may distribute this code under the same terms as Perl itself.