22 foreach ( $array_in
as $item ) {
24 if ( !isset( $array_hashes[$hash] ) ) {
25 $array_hashes[$hash] = $hash;
41 $this->nrows = oci_fetch_all( $stmt, $this->rows, 0, -1, OCI_FETCHSTATEMENT_BY_ROW | OCI_NUM );
42 if ( $this->nrows ===
false ) {
43 $e = oci_error( $stmt );
44 $db->reportQueryError(
$e[
'message'],
$e[
'code'],
'', __METHOD__ );
52 $this->nrows =
count( $this->rows );
55 if ( $this->nrows > 0 ) {
56 foreach ( $this->rows[0]
as $k => $v ) {
57 $this->columns[$k] = strtolower( oci_field_name( $stmt, $k + 1 ) );
62 oci_free_statement( $stmt );
69 public function seek( $row ) {
70 $this->cursor = min( $row, $this->nrows );
78 return count( $this->columns );
82 if ( $this->cursor >= $this->nrows ) {
85 $row = $this->rows[$this->cursor++];
86 $ret =
new stdClass();
87 foreach ( $row
as $k => $v ) {
88 $lc = $this->columns[$k];
96 if ( $this->cursor >= $this->nrows ) {
100 $row = $this->rows[$this->cursor++];
102 foreach ( $row
as $k => $v ) {
103 $lc = $this->columns[$k];