Trying to use sqlx to connect to Apache Doris #3090
Unanswered
ChunHou20c
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I am trying out connecting to Apache Doris using mysql protocol. While using mysql client, the connection works fine, however when trying to connect to Apache Doris using sqlx I get an error:
It seems like sqlx is trying to set some sqlx options using concatenation, after investigating the by logging the debug message this is what I find out:
And I am able to reproduce this error in Apache Doris using this query:
So it appear that Doris doesn't support setting the sql mode by concatenating the values, and for mysql client it just doesn't set any value.
My question is, what will actually happen if we don't set the value in sqlx? And is it possible to disable the set of the sql_option when establishing the connection in sqlx? I do see the sql_options is set using concat in the connect function in https://github.com/launchbadge/sqlx/blob/main/sqlx-mysql/src/options/connect.rs.
Beta Was this translation helpful? Give feedback.
All reactions