[Bast-commits] r9003 -
DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t
rbo at dev.catalyst.perl.org
rbo at dev.catalyst.perl.org
Mon Mar 15 11:48:03 GMT 2010
Author: rbo
Date: 2010-03-15 11:48:03 +0000 (Mon, 15 Mar 2010)
New Revision: 9003
Modified:
DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t
Log:
Fixed 73oracle.t because of new implementation of connect_by
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-03-15 11:02:16 UTC (rev 9002)
+++ DBIx-Class/0.08/branches/oracle_hierarchical_queries_rt39121/t/73oracle.t 2010-03-15 11:48:03 UTC (rev 9003)
@@ -429,7 +429,7 @@
START WITH
name = ?
CONNECT BY
- parentid = prior artistid
+ parentid = PRIOR( artistid )
ORDER SIBLINGS BY
name DESC
@@ -446,7 +446,7 @@
my $rs = $schema->resultset('Artist')->search({ parentid => undef },
{
'start_with' => { 'name' => 'greatgrandchild' },
- 'connect_by' => { '-prior' => [ \'parentid', \'artistid' ] } ,
+ 'connect_by' => { 'artistid' => { '-prior' => \'parentid' } },
});
=pod
SELECT
@@ -458,7 +458,7 @@
START WITH
name = ?
CONNECT BY
- prior parentid = artistid
+ artistid = PRIOR( parentid )
Parameters: 'greatgrandchild'
=cut
@@ -529,7 +529,7 @@
my $rs = $schema->resultset('Artist')->search({},
{
'start_with' => { 'name' => 'greatgrandchild' },
- 'connect_by' => { '-prior' => [ \'parentid', \'artistid' ] },
+ 'connect_by' => { artistid => { '-prior' => \'parentid' } },
'order_by' => 'name ASC',
});
my $ok = 1;
@@ -541,7 +541,7 @@
START WITH
name = ?
CONNECT BY
- prior parentid = artistid
+ artistid = PRIOR( parentid )
ORDER BY
name ASC
@@ -558,7 +558,7 @@
my $rs = $schema->resultset('Artist')->search({},
{
'start_with' => { 'name' => 'greatgrandchild' },
- 'connect_by' => { '-prior' => [ \'parentid', \'artistid' ] },
+ 'connect_by' => { 'artistid' => { '-prior' => \'parentid' } },
'order_by' => 'name ASC',
'rows' => 2,
'page' => 1,
@@ -571,7 +571,7 @@
START WITH
name = ?
CONNECT BY
- prior parentid = artistid
+ artistid = PRIOR( parentid )
Parameters: 'greatgrandchild'
=cut
More information about the Bast-commits
mailing list