function Error($err, $fn) { global $_ADODB_ACTIVE_DBS; $fn = get_class($this) . '::' . $fn; $this->_lasterr = $fn . ': ' . $err; if ($this->_dbat < 0) { $db = false; } else { $activedb = $_ADODB_ACTIVE_DBS[$this->_dbat]; $db = $activedb->db; } if (function_exists('adodb_throw')) { if (!$db) { adodb_throw('ADOdb_Active_Record', $fn, -1, $err, 0, 0, false); } else { adodb_throw($db->databaseType, $fn, -1, $err, 0, 0, $db); } } else { if (!$db || $db->debug) { ADOConnection::outp($this->_lasterr); } } }
function outp_throw($msg, $src = 'WARN', $sql = '') { if (defined('ADODB_ERROR_HANDLER') && ADODB_ERROR_HANDLER == 'adodb_throw') { adodb_throw($this->databaseType, $src, -9999, $msg, $sql, false, $this); return; } ADOConnection::outp($msg); }