db_Mysql::error PHP Method

error() public method

数据库错误信息 并显示当前的SQL语句
public error ( ) : string
return string
    public function error()
    {
        $this->error = mysql_errno() . ':' . mysql_error($this->_linkID);
        if ('' != $this->queryStr) {
            $this->error .= "\n [ SQL语句 ] : " . $this->queryStr;
        }
        trace($this->error, '', 'ERR');
        return $this->error;
    }