X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F91debug.t;h=5b5514beed886450daec1070f9aaf84193df0952;hb=639cf8f9d212c3e950ae5bae680133762c1df0aa;hp=ef9dfd4b6ffef90894dabf0232929a38601cedcc;hpb=949172b0fa30a832d268c3f55f97247a10742314;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/91debug.t b/t/91debug.t index ef9dfd4..5b5514b 100644 --- a/t/91debug.t +++ b/t/91debug.t @@ -4,7 +4,7 @@ use warnings; use Test::More; use lib qw(t/lib); use DBICTest; -use DBICTest::DBICDebugObj; +use DBIC::DebugObj; use DBIC::SqlMakerTest; my $schema = DBICTest->init_schema(); @@ -57,16 +57,16 @@ open(STDERR, '>&STDERRCOPY'); my @cds = $schema->resultset('CD')->search( { artist => 1, cdid => { -between => [ 1, 3 ] }, } ); is_same_sql_bind( $sql, [], - "SELECT me.cdid, me.artist, me.title, me.year, me.genreid FROM cd me WHERE ( artist = ? AND cdid BETWEEN ? AND ? ): '1', '1', '3'", [], + "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me WHERE ( artist = ? AND (cdid BETWEEN ? AND ?) ): '1', '1', '3'", [], 'got correct SQL with all bind parameters (debugcb)' ); $schema->storage->debugcb(undef); - $schema->storage->debugobj(DBICTest::DBICDebugObj->new(\$sql, \@bind)); + $schema->storage->debugobj(DBIC::DebugObj->new(\$sql, \@bind)); @cds = $schema->resultset('CD')->search( { artist => 1, cdid => { -between => [ 1, 3 ] }, } ); is_same_sql_bind( $sql, \@bind, - "SELECT me.cdid, me.artist, me.title, me.year, me.genreid FROM cd me WHERE ( artist = ? AND cdid BETWEEN ? AND ? )", ["'1'", "'1'", "'3'"], + "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me WHERE ( artist = ? AND (cdid BETWEEN ? AND ?) )", ["'1'", "'1'", "'3'"], 'got correct SQL with all bind parameters (debugobj)' ); }