sql => '(
SELECT id, artist__id, bleh
FROM (
- SELECT id, artist__id, bleh, ROWNUM rownum__index
+ SELECT id, artist__id, bleh, ROWNUM AS rownum__index
FROM (
SELECT foo.id AS id, bar.id AS artist__id, TO_CHAR (foo.womble, "blah") AS bleh
FROM cd me
sql => '(
SELECT id, artist__id, bleh
FROM (
- SELECT id, artist__id, bleh, ROWNUM rownum__index
+ SELECT id, artist__id, bleh, ROWNUM AS rownum__index
FROM (
SELECT foo.id AS id, bar.id AS artist__id, TO_CHAR(foo.womble, "blah") AS bleh
FROM cd me
sql => '(
SELECT id, artist__id, bleh
FROM (
- SELECT id, artist__id, bleh, ROWNUM rownum__index
+ SELECT id, artist__id, bleh, ROWNUM AS rownum__index
FROM (
SELECT foo.id AS id, bar.id AS artist__id, TO_CHAR(foo.womble, "blah") AS bleh
FROM cd me
sql => '(
SELECT id, ends_with_me__id
FROM (
- SELECT id, ends_with_me__id, ROWNUM rownum__index
+ SELECT id, ends_with_me__id, ROWNUM AS rownum__index
FROM (
SELECT foo.id AS id, ends_with_me.id AS ends_with_me__id
FROM cd me
sql => '(
SELECT id, ends_with_me__id
FROM (
- SELECT id, ends_with_me__id, ROWNUM rownum__index
+ SELECT id, ends_with_me__id, ROWNUM AS rownum__index
FROM (
SELECT foo.id AS id, ends_with_me.id AS ends_with_me__id
FROM cd me
'(
SELECT owner_name, owner_books
FROM (
- SELECT owner_name, owner_books, ROWNUM rownum__index
+ SELECT owner_name, owner_books, ROWNUM AS rownum__index
FROM (
SELECT owner.name AS owner_name,
( SELECT COUNT( * ) FROM owners owner WHERE (count.id = owner.id)) AS owner_books