-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement MySqlCommand.Prepare #397
Comments
Add |
#534 adds initial support: single statements, no stored procedures. |
Will do the latter (breaking the command up into individual statements); however, the client will still need to be aware of statements that can be prepared.
It will be supported, and default to |
MySqlCommand.Prepare
is currently unimplemented:CLIENT_MULTI_STATEMENTS
is supposed to mean that the Server "Can handle multiple statements perCOM_QUERY
andCOM_STMT_PREPARE
" (https://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_MULTI_STATEMENTS), this is not actually true because "Prepared statement handles are defined to work only with strings that contain a single statement" (http://dev.mysql.com/doc/refman/5.7/en/c-api-multiple-queries.html).Connector/NET has a
IgnorePrepare
connection string setting that defaults totrue
; unless the user explicitly sets that tofalse
then its Prepare method also does nothing.Prepare
(e.g., accept the client's SQL as-is and let them be responsible for knowing server's limitations; or, break the command into individual statements, divide up the parameters and prepare them individually).IgnorePrepare
option should be supported, and its default valueThe text was updated successfully, but these errors were encountered: