From: Ricardo Signes Date: Thu, 8 Jan 2009 20:50:57 +0000 (+0000) Subject: fix the just-added test; pass the Storage object to pure-code on_connect callbacks X-Git-Tag: v0.08240~204 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=257d8d6827ee5a58e759153ba8514df37aa5e15c;p=dbsrgits%2FDBIx-Class.git fix the just-added test; pass the Storage object to pure-code on_connect callbacks --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index b395932..fde1fa8 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -926,7 +926,7 @@ sub _do_connection_actions { $self->_do_query($_) foreach @$connection_do; } elsif (ref $connection_do eq 'CODE') { - $connection_do->(); + $connection_do->($self); } return $self;