Fixed bad if-check in columns()
[dbsrgits/DBIx-Class.git] / t / relationship / update_or_create_multi.t
index 885b15c..56936f8 100644 (file)
@@ -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 = ? )