From: Robert Bohne Date: Mon, 15 Mar 2010 11:48:03 +0000 (+0000) Subject: Fixed 73oracle.t because of new implementation of connect_by X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=184005983ab22b5cf557191542d8d18c114176aa;p=dbsrgits%2FDBIx-Class-Historic.git Fixed 73oracle.t because of new implementation of connect_by --- diff --git a/t/73oracle.t b/t/73oracle.t index 2c71724..99e12eb 100644 --- a/t/73oracle.t +++ b/t/73oracle.t @@ -429,7 +429,7 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { START WITH name = ? CONNECT BY - parentid = prior artistid + parentid = PRIOR( artistid ) ORDER SIBLINGS BY name DESC @@ -446,7 +446,7 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { 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 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { START WITH name = ? CONNECT BY - prior parentid = artistid + artistid = PRIOR( parentid ) Parameters: 'greatgrandchild' =cut @@ -529,7 +529,7 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { 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 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { START WITH name = ? CONNECT BY - prior parentid = artistid + artistid = PRIOR( parentid ) ORDER BY name ASC @@ -558,7 +558,7 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { 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 @@ if ( $schema->storage->isa('DBIx::Class::Storage::DBI::Oracle::Generic') ) { START WITH name = ? CONNECT BY - prior parentid = artistid + artistid = PRIOR( parentid ) Parameters: 'greatgrandchild' =cut