Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is initstmt supported? #1370

Unanswered
tsaiggo asked this question in Q&A
Discussion options

My customer is using the properties initstmt in the MySQL ODBC Driver.
I am trying to migrate from MySQL ODBC Driver to net/MySqlConnector. But I couldn't find any properties related to initstmt in the MySqlConnectionStringBuilder.
Do you have any plans to implement initstmt? Or is there any reason not to implement this property?

This is an explanation related to initstmt
https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-connection-parameters.html

You must be logged in to vote

Replies: 1 comment

Comment options

There are no plans to support initstmt.

A workaround you could try is attaching an event handler to the MySqlConnection.StateChange event. When StateChangeEventArgs.CurrentState changes to ConnectionState.Open, execute the SQL you would set as the initstmt.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #1369 on September 11, 2023 13:13.

AltStyle によって変換されたページ (->オリジナル) /