Zend Framework

fetchCol() and limit() with Oracle

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Db_Adapter_Oracle
  • Labels:
    None

Description

Method limit() of Oracle add an extra field "zend_db_rownum". This field is positioned at the beginning of the result.

In case of using fetchCol(), we return the value of "zend_db_rownum" instead of the desired field.

We can reverse in Zend_Db_Adapter_Oracle::limit():

SELECT ROWNUM AS zend_db_rownum, z1.*

should be

SELECT z1.*, ROWNUM AS zend_db_rownum

Activity

Hide
Mickael Perraud added a comment -

Fixed with SVN13754

Show
Mickael Perraud added a comment - Fixed with SVN13754
Hide
Mickael Perraud added a comment -

Also fixed for Pdo_Oci with SVN13757

Show
Mickael Perraud added a comment - Also fixed for Pdo_Oci with SVN13757

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: