From: Matt S Trout Date: Sun, 5 Aug 2007 14:41:51 +0000 (+0000) Subject: add cursor_class to storage opt list X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f3655d44981a99ddc752ecd7056f5b14be6ae04;p=dbsrgits%2FDBIx-Class-Historic.git add cursor_class to storage opt list --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 5be636f..c7c0d5b 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -481,7 +481,9 @@ sub connect_info { my $last_info = $dbi_info->[-1]; if(ref $last_info eq 'HASH') { $last_info = { %$last_info }; # so delete is non-destructive - for my $storage_opt (qw/on_connect_do disable_sth_caching unsafe/) { + for my $storage_opt ( + qw/on_connect_do disable_sth_caching unsafe cursor_class/ + ) { if(my $value = delete $last_info->{$storage_opt}) { $self->$storage_opt($value); }