Skip to content

Unable to Connect to StarRocks in Version 0.8.5 (Works Fine in 0.8.3) #3843

@scottxing

Description

@scottxing

I have found these related issues/pull requests

not found

Description

Could you investigate whether there were any changes in the MySQL driver or connection handling logic between versions 0.8.3 and 0.8.5 that might cause this issue? Alternatively, if this is a known issue, guidance on how to resolve it would be appreciated.

Thank you for your time and support!

Reproduction steps

Steps to Reproduce:
1.Use the following connection string or configuration to connect to StarRocks:

let options = MySqlConnectOptions::new()
.host(conf.get("host").unwrap())
.port(conf.get("port").unwrap().parse()?)
.username(conf.get("username").unwrap())
.password(conf.get("password").unwrap())
.timezone(String::from("+08:00"))
.no_engine_substitution(false)
.pipes_as_concat(false);

2.Run the code with sqlx version 0.8.5.
3.Observe that the connection fails.
4.Downgrade to sqlx version 0.8.3 and run the same code.
5.Observe that the connection succeeds.

SQLx version

0.8.5

Enabled SQLx features

"chrono", "mysql", "runtime-tokio", "bigdecimal"

Database server and version

StarRocks3.3.9

Operating system

CentOS7.9

Rust version

rustc 1.85.1 (4eb161250 2025-03-15)

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