From: Peter Rabbitson Date: Tue, 22 Sep 2009 10:58:09 +0000 (+0000) Subject: this would break in the future - sanitize sql fed to the tester X-Git-Tag: v0.08113~51 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0be2023f18208e1af55aad814ebd524f3f5efbc8;p=dbsrgits%2FDBIx-Class.git this would break in the future - sanitize sql fed to the tester --- diff --git a/t/relationship/update_or_create_multi.t b/t/relationship/update_or_create_multi.t index 885b15c..56936f8 100644 --- a/t/relationship/update_or_create_multi.t +++ b/t/relationship/update_or_create_multi.t @@ -76,8 +76,9 @@ $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 = ? )