SELECT me.artistid, me.name, me.rank, me.charfield, me.parentid
FROM artist me
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
)',
[ [ name => 'root'] ],
);
SELECT COUNT( * )
FROM artist me
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
)',
[ [ name => 'root'] ],
);
SELECT me.artistid, me.name, me.rank, me.charfield, me.parentid
FROM artist me
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
ORDER SIBLINGS BY name DESC
)',
[ [ name => 'root'] ],
FROM artist me
WHERE ( parentid IS NULL )
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
)',
[ [ name => 'root'] ],
);
LEFT JOIN cd cds ON cds.artist = me.artistid
WHERE ( cds.title LIKE ? )
START WITH me.name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
)',
[ [ 'cds.title' => '%cd' ], [ 'me.name' => 'root' ] ],
);
LEFT JOIN cd cds ON cds.artist = me.artistid
WHERE ( cds.title LIKE ? )
START WITH me.name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
)',
[ [ 'cds.title' => '%cd' ], [ 'me.name' => 'root' ] ],
);
SELECT me.artistid, me.name, me.rank, me.charfield, me.parentid
FROM artist me
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
ORDER BY LEVEL ASC, name ASC
)',
[ [ name => 'root' ] ],
me.parentid AS col5
FROM artist me
START WITH name = ?
- CONNECT BY parentid = PRIOR( artistid )
+ CONNECT BY parentid = PRIOR artistid
ORDER BY name ASC
) A
WHERE ROWNUM < 3
# TODO:
# prints "START WITH name = ?
- # CONNECT BY artistid = PRIOR( parentid )"
+ # CONNECT BY artistid = PRIOR parentid "
# after count_subq,
# I will fix this later...
#
# me.artistid AS col1
# FROM artist me
# START WITH name = ?
- # CONNECT BY artistid = PRIOR( parentid )
+ # CONNECT BY artistid = PRIOR parentid
# ) A
# WHERE ROWNUM < 3
# ) B
SELECT me.artistid, me.name, me.rank, me.charfield, me.parentid, CONNECT_BY_ISCYCLE
FROM artist me
START WITH name = ?
- CONNECT BY NOCYCLE parentid = PRIOR( artistid )
+ CONNECT BY NOCYCLE parentid = PRIOR artistid
)',
[ [ name => 'cycle-root'] ],
);
SELECT COUNT( * )
FROM artist me
START WITH name = ?
- CONNECT BY NOCYCLE parentid = PRIOR( artistid )
+ CONNECT BY NOCYCLE parentid = PRIOR artistid
)',
[ [ name => 'cycle-root'] ],
);