cleanup source_bind_attributes for ADO
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / ADO / Microsoft_SQL_Server.pm
index 85898fa..3014c34 100644 (file)
@@ -15,14 +15,12 @@ sub _rebless {
 }
 
 sub source_bind_attributes {
-  my ($self, $source) = @_;
+  my $self = shift;
+  my ($source) = @_;
 
-  my $bind_attributes;
-  foreach my $column ($source->columns) {
+  my $bind_attributes = $self->next::method(@_);
 
-    my $data_type = $source->column_info($column)->{data_type} || '';
-    $bind_attributes->{$column} = $self->bind_attribute_by_data_type($data_type)
-      if $data_type;
+  foreach my $column ($source->columns) {
     $bind_attributes->{$column}{ado_size} ||= 8000; # max VARCHAR
   }