function _initrs() { $this->_numOfFields = @odbtp_num_fields($this->_queryID); if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID))) $this->_numOfRows = -1; if ($this->connection->odbc_driver == ODB_DRIVER_JET) { for ($f = 0; $f < $this->_numOfFields; $f++) { if (odbtp_field_bindtype($this->_queryID, $f) == ODB_CHAR) odbtp_bind_field($this->_queryID, $f, ODB_WCHAR); } } }
function _initrs() { $this->_numOfFields = @odbtp_num_fields($this->_queryID); if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID))) { $this->_numOfRows = -1; } if (!$this->connection->_useUnicodeSQL) { return; } if ($this->connection->odbc_driver == ODB_DRIVER_JET) { if (!@odbtp_get_attr(ODB_ATTR_MAPCHARTOWCHAR, $this->connection->_connectionID)) { for ($f = 0; $f < $this->_numOfFields; $f++) { if (@odbtp_field_bindtype($this->_queryID, $f) == ODB_CHAR) { @odbtp_bind_field($this->_queryID, $f, ODB_WCHAR); } } } } }
function _initrs() { $this->_numOfFields = @odbtp_num_fields($this->_queryID); if (!($this->_numOfRows = @odbtp_num_rows($this->_queryID))) { $this->_numOfRows = -1; } }
function _initrs() { $this->_numOfRows = -1; //odbtp_num_rows - odbtp_num_rows -- get number of fetched rows from query ; $this->_numOfFields = odbtp_num_fields($this->_queryID); }