function _fetch_odbtp($type = 0) { switch ($this->fetchMode) { case ADODB_FETCH_NUM: $this->fields = @odbtp_fetch_row($this->_queryID, $type); break; case ADODB_FETCH_ASSOC: $this->fields = @odbtp_fetch_assoc($this->_queryID, $type); break; default: $this->fields = @odbtp_fetch_array($this->_queryID, $type); } return is_array($this->fields); }
function _fetch_odbtp($type = 0) { switch ($this->fetchMode) { case ADODB_FETCH_NUM: $this->fields = @odbtp_fetch_row($this->_queryID, $type); break; case ADODB_FETCH_ASSOC: $this->fields = @odbtp_fetch_assoc($this->_queryID, $type); break; default: $this->fields = @odbtp_fetch_array($this->_queryID, $type); } if ($this->databaseType = 'odbtp_vfp') { if ($this->fields) { foreach ($this->fields as $k => $v) { if (strncmp($v, '1899-12-30', 10) == 0) { $this->fields[$k] = ''; } } } } return is_array($this->fields); }