use debugobj->callback instead of local *_query_start in test to capture query
Rafael Kitover [Mon, 24 Aug 2009 13:51:48 +0000 (13:51 +0000)]
t/746sybase.t

index 6f6f3aa..29593ab 100644 (file)
@@ -150,8 +150,10 @@ SQL
 # placeholders.)
   {
     no warnings 'redefine';
+
     my @debug_out;
-    local *DBIx::Class::Storage::DBI::_query_start = sub {
+    local $schema->storage->{debug} = 1;
+    local $schema->storage->debugobj->{callback} = sub {
       push @debug_out, $_[1];
     };