[Bast-commits] r9370 -
DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t
rbo at dev.catalyst.perl.org
rbo at dev.catalyst.perl.org
Fri May 14 21:27:13 GMT 2010
Author: rbo
Date: 2010-05-14 22:27:13 +0100 (Fri, 14 May 2010)
New Revision: 9370
Modified:
DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t
Log:
Fixed broken count query, because of new count query implementation.
Modified: DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t
===================================================================
--- DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t 2010-05-14 21:25:02 UTC (rev 9369)
+++ DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t 2010-05-14 21:27:13 UTC (rev 9370)
@@ -570,22 +570,21 @@
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' ] ],
);
More information about the Bast-commits
mailing list