X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frelationship%2Fupdate_or_create_multi.t;h=56936f85674a21e1c0a7a3d76d76ef47cac22338;hb=97c96475ed1bdd955ba0e6c4f22087ca05c64162;hp=e75fede2e6cedf07ea15aed8e08524ceb667bb09;hpb=2284af7e437db36ac5ab4defa6dd7085a16a58fe;p=dbsrgits%2FDBIx-Class.git diff --git a/t/relationship/update_or_create_multi.t b/t/relationship/update_or_create_multi.t index e75fede..56936f8 100644 --- a/t/relationship/update_or_create_multi.t +++ b/t/relationship/update_or_create_multi.t @@ -8,9 +8,9 @@ use DBICTest; use DBIC::SqlMakerTest; my $schema = DBICTest->init_schema(); +my $sdebug = $schema->storage->debug; -#plan tests => 4; -plan 'no_plan'; +plan tests => 6; my $artist = $schema->resultset ('Artist')->first; @@ -74,9 +74,11 @@ $genre->update_or_create_related ('cds', { }); $schema->storage->debugcb(undef); +$schema->storage->debug ($sdebug); +my ($search_sql) = $sql[0] =~ /^(SELECT .+?)\:/; is_same_sql ( - $sql[0], + $search_sql, 'SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me WHERE ( me.artist = ? AND me.title = ? AND me.genreid = ? )