Skip to content

Failed to execute the prepared statement in Doris #3335

@groobyming

Description

@groobyming

Bug Description

A clear and concise description of what the bug is.
According to the MySQL Protocol, COM_STMT_PREPARE_OK does not necessarily require 12 bytes. 10 bytes is also acceptable. My question is, why must we require 12 bytes? @mehcode

Code:
https://github.com/launchbadge/sqlx/blob/main/sqlx-mysql/src/protocol/statement/prepare_ok.rs
image

MySQL protocol:
https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_com_stmt_prepare.html#sect_protocol_com_stmt_prepare_response_ok
image

Minimal Reproduction

A small code snippet or a link to a Github repo or Gist, with instructions on reproducing the bug.

Info

  • SQLx version: [0.7.4]
  • SQLx features enabled: [ "runtime-tokio-rustls", "macros", "chrono","mysql","postgres",]
  • Database server and version: [REQUIRED] (doris)
  • Operating system: [linux]
  • rustc --version: [1.7.9]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbug:dbInvolves a bug in the database serverdb:mysqlRelated to MySQLdb:third-party-compatConcerns a third-party database implementation that advertises support for a well known protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions