Oracle database drive bug with LIMIT |
[eluser]North2Alaska[/eluser]
When I build a query with the Active Record and use the ->Limit(1), the result is never displayed. I displayed the sql and it looks like the Oracle drive is not correct. On line 775 of oci8_driver.php the line of code looks like this Code: $newsql = "SELECT * FROM (select inner_query.*, rownum rnum FROM ($sql) inner_query WHERE rownum < $limit)"; Code: $newsql = "SELECT * FROM (select inner_query.*, rownum rnum FROM ($sql) inner_query WHERE rownum <= $limit)";
[eluser]cpassas[/eluser]
If you think you've found a bug you might be better off posting it here: https://github.com/EllisLab/CodeIgniter/issues/new |
Welcome Guest, Not a member yet? Register Sign In |