fix the just-added test; pass the Storage object to pure-code on_connect callbacks
Ricardo Signes [Thu, 8 Jan 2009 20:50:57 +0000 (20:50 +0000)]
lib/DBIx/Class/Storage/DBI.pm

index b395932..fde1fa8 100644 (file)
@@ -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;