~ubuntu-branches/ubuntu/trusty/zendframework/trusty

« back to all changes in this revision

Viewing changes to library/Zend/Db/Statement/Pdo/Oci.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank Habermann
  • Date: 2010-04-28 20:10:00 UTC
  • mfrom: (1.3.1 upstream) (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100428201000-o347bj5qb5i3tpot
Tags: 1.10.4-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * @subpackage Statement
18
18
 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19
19
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20
 
 * @version    $Id: Oci.php 20096 2010-01-06 02:05:09Z bkarwin $
 
20
 * @version    $Id: Oci.php 21105 2010-02-19 21:27:09Z mikaelkael $
21
21
 */
22
22
 
23
23
/**
66
66
        }
67
67
        return $results;
68
68
    }
 
69
 
 
70
 
 
71
    /**
 
72
     * Fetches a row from the result set.
 
73
     *
 
74
     * @param int $style  OPTIONAL Fetch mode for this fetch operation.
 
75
     * @param int $cursor OPTIONAL Absolute, relative, or other.
 
76
     * @param int $offset OPTIONAL Number for absolute or relative cursors.
 
77
     * @return mixed Array, object, or scalar depending on fetch mode.
 
78
     * @throws Zend_Db_Statement_Exception
 
79
     */
 
80
    public function fetch($style = null, $cursor = null, $offset = null)
 
81
    {
 
82
        $row = parent::fetch($style, $cursor, $offset);
 
83
 
 
84
        $remove = $this->_adapter->foldCase('zend_db_rownum');
 
85
        if (is_array($row) && array_key_exists($remove, $row)) {
 
86
            unset($row[$remove]);
 
87
        }
 
88
 
 
89
        return $row;
 
90
    }
69
91
}
 
 
b'\\ No newline at end of file'