X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F88result_set_column.t;h=b1c1e96d3cbad115c606ea5ff0fcc321299dc4da;hb=de4705b7393350ae7cde8f5409f204747c1a4a4e;hp=cc6f68b95e4d0cbe5eab01d99825e9cb25a66f36;hpb=aca094b4dff8c1b930a52a56853e06b65b508032;p=dbsrgits%2FDBIx-Class.git diff --git a/t/88result_set_column.t b/t/88result_set_column.t index cc6f68b..b1c1e96 100644 --- a/t/88result_set_column.t +++ b/t/88result_set_column.t @@ -277,7 +277,7 @@ is_same_sql_bind ( # would silently drop the group_by entirely, likely ending up with nonsensival results # With the current behavior the user will at least get a nice fat exception from the # RDBMS (or maybe the RDBMS will even decide to handle the situation sensibly...) - is_same_sql_bind( + warnings_exist { is_same_sql_bind( $rstypes->{'implicitly grouped'}->get_column('cnt')->as_query, '( SELECT COUNT( me.cdid ) @@ -294,7 +294,10 @@ is_same_sql_bind ( => 'evancarrol' ] ], 'Expected (though nonsensical) SQL generated on rscol-with-distinct-over-function', - ); + ) } qr/ + \QUse of distinct => 1 while selecting anything other than a column \E + \Qdeclared on the primary ResultSource is deprecated\E + /x, 'deprecation warning'; { local $TODO = 'multiplying join leaks through to the count aggregate... this may never actually work';