"AND rownum" addition fix #12

wants to merge 5 commits into from

1 participant


Fixed addition of "AND rownum" for queries without "WHERE" clause. Problem observed with Padrino 0.10.7, DataMapper 1.2.0, will_paginate 3.0.3

DEBUG - (0.003192) SELECT COUNT(*) FROM "PUBLICATIONS" AND rownum <= :1
ERROR - ORA-00933: SQL command not properly ended (code: 933, sql state: , query: SELECT COUNT(*) FROM "PUBLICATIONS" AND rownum <= :1, uri: oracle:***@***?fragment=&query=&path=&port=&scheme=oracle&adapter=oracle&user=***&host=***&password=***)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment