src/Handler/Frontend/FrontendConnection.php
public function query(BinaryPacket $bin)
    {
        // 取得语句
        $mm = new MySQLMessage($bin->data);
        $mm->position(5);
        $sql = $mm->readString();
        if (null == $sql || 0 == strlen($sql)) {
            throw new MySQLException('Empty SQL');
        }
        // 执行查询
        return $this->queryHandler->query($sql);
    }
public function query(BinaryPacket $bin)
    {
        // 取得语句
        $mm = new MySQLMessage($bin->data);
        $mm->position(5);
        $sql = $mm->readString();
        if (null == $sql || 0 == strlen($sql)) {
            throw new MySQLException('Empty SQL');
        }
        // 执行查询
        return $this->queryHandler->query($sql);
    }
@param BinaryPacket $bin

@return mixed
@throws MySQLException