From: Matt S Trout Date: Sat, 14 Apr 2012 17:11:34 +0000 (+0000) Subject: me.minyear is not a valid alias, minyear is X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c859e1089538099dddaa829b665c1a1e0b7542b5;p=dbsrgits%2FDBIx-Class-Historic.git me.minyear is not a valid alias, minyear is --- diff --git a/t/sqlmaker/core_quoted.t b/t/sqlmaker/core_quoted.t index 4392cc2..a8a4af5 100644 --- a/t/sqlmaker/core_quoted.t +++ b/t/sqlmaker/core_quoted.t @@ -42,7 +42,7 @@ my ($sql, @bind) = $sql_maker->select( [ 'me.cdid', { count => 'tracks.cd' }, - { min => 'me.year', -as => 'me.minyear' }, + { min => 'me.year', -as => 'minyear' }, ], { 'artist.name' => 'Caterwauler McCrae', @@ -56,7 +56,7 @@ my ($sql, @bind) = $sql_maker->select( is_same_sql_bind( $sql, \@bind, q/ - SELECT `me`.`cdid`, COUNT( `tracks`.`cd` ), MIN( `me`.`year` ) AS `me`.`minyear` + SELECT `me`.`cdid`, COUNT( `tracks`.`cd` ), MIN( `me`.`year` ) AS `minyear` FROM `cd` `me` JOIN `artist` `artist` ON ( `artist`.`artistid` = `me`.`artist` ) LEFT JOIN `tracks` `tracks` ON ( `tracks`.`cd` = `me`.`cdid` )