From: Robert Bohne Date: Fri, 14 May 2010 21:27:13 +0000 (+0000) Subject: Fixed broken count query, because of new count query implementation. X-Git-Tag: v0.08122~34^2~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a5a7d7ecc726756d50c0b0ec36ee58f5e4ef38a;p=dbsrgits%2FDBIx-Class.git Fixed broken count query, because of new count query implementation. --- diff --git a/t/73oracle.t b/t/73oracle.t index 8c94592..5dcd567 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -570,22 +570,21 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { is_same_sql_bind ( $rs->as_query, '( - SELECT * FROM ( - SELECT A.*, ROWNUM r FROM ( + SELECT artistid, name, rank, charfield, parentid FROM ( + SELECT artistid, name, rank, charfield, parentid, ROWNUM rownum__index FROM ( SELECT - me.artistid AS col1, - me.name AS col2, - me.rank AS col3, - me.charfield AS col4, - me.parentid AS col5 + me.artistid, + me.name, + me.rank, + me.charfield, + me.parentid FROM artist me START WITH name = ? CONNECT BY parentid = PRIOR artistid - ORDER BY name ASC - ) A - WHERE ROWNUM < 3 - ) B - WHERE r >= 1 + ORDER BY name ASC + ) me + ) me + WHERE rownum__index BETWEEN 1 AND 2 )', [ [ name => 'root' ] ], );