X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBI%2FADO%2FMicrosoft_SQL_Server.pm;h=ac42a1eebad8b5f8f7e1484da8aad60b1fb756d9;hb=12a184d0a0c1868708e43aaabefe08f9e7ac9ec4;hp=cd28c62282f0ebad93ee07387f667b3f2b15dd45;hpb=a2bd379666d729133d65c85dc775627937084b18;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/lib/DBIx/Class/Storage/DBI/ADO/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/ADO/Microsoft_SQL_Server.pm index cd28c62..ac42a1e 100644 --- a/lib/DBIx/Class/Storage/DBI/ADO/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/ADO/Microsoft_SQL_Server.pm @@ -182,9 +182,11 @@ sub _dbi_attrs_for_bind { my $attrs = $self->next::method(@_); - foreach my $attr (@$attrs) { - $attr->{ado_size} ||= 8000 if $attr; - } + # The next::method above caches the returned hashrefs in a _dbh related + # structure. It is safe for us to modify it in this manner, as the default + # does not really change (albeit the entire logic is insane and is pending + # a datatype-objects rewrite) + $_ and $_->{ado_size} ||= 8000 for @$attrs; return $attrs; }