From: Rafael Kitover Date: Mon, 24 Aug 2009 13:51:48 +0000 (+0000) Subject: use debugobj->callback instead of local *_query_start in test to capture query X-Git-Tag: v0.08112~14^2~50 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f7d92f26675586fe8775e20dfbc9dcabf7c6aa2f;p=dbsrgits%2FDBIx-Class.git use debugobj->callback instead of local *_query_start in test to capture query --- diff --git a/t/746sybase.t b/t/746sybase.t index 6f6f3aa..29593ab 100644 --- a/t/746sybase.t +++ b/t/746sybase.t @@ -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]; };