projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1713a57
)
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
patch
|
blob
|
blame
|
history
diff --git
a/t/746sybase.t
b/t/746sybase.t
index
6f6f3aa
..
29593ab
100644
(file)
--- 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];
};