Skip to content
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 prepared commands #534

Merged
merged 11 commits into from Jul 24, 2018
Merged

Conversation

bgrainger
Copy link
Member

@bgrainger bgrainger commented Jul 22, 2018

No description provided.

bgrainger added 2 commits Jul 22, 2018
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
These were moved to ICommandExecutor in 16d2c99, but don't need to support customised implementations.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
This lays the groundwork for a BinaryRow derived class (that handles the binary protocol) to be added for prepared statements.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@bgrainger bgrainger force-pushed the prepared-commands branch 2 times, most recently from 85dd154 to 0133371 Compare Jul 22, 2018
bgrainger added 4 commits Jul 22, 2018
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Call MySqlCommand.Prepare for all commands in the test class; normally
this is a no-op (since IgnorePrepare=true in the connection string), but
test runners could use a custom connection string to test prepared
commands.

Make MySqlCommand.Prepare a no-op so that the tests pass.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@bgrainger bgrainger force-pushed the prepared-commands branch 2 times, most recently from bda352c to 22f5806 Compare Jul 23, 2018
This splits a single MySqlCommand.CommandText string into multiple individual SQL statements that can be prepared individually; MySQL Server doesn't support prepared commands that comprise multiple SQL statements.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@bgrainger bgrainger merged commit 18ef235 into mysql-net:master Jul 24, 2018
3 checks passed
@bgrainger bgrainger deleted the prepared-commands branch Jul 24, 2018
@bgrainger
Copy link
Member Author

bgrainger commented Jul 27, 2018

Added in 0.43.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant