Skip to content

Implement prepared commands #534

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

Merged
merged 11 commits into from
Jul 24, 2018
Merged

Conversation

bgrainger
Copy link
Member

@bgrainger bgrainger commented Jul 22, 2018

No description provided.

These were moved to ICommandExecutor in 16d2c99, but don't need to support customised implementations.

Signed-off-by: Bradley Grainger <[email protected]>
@bgrainger bgrainger force-pushed the prepared-commands branch from e35e59f to 5c747b2 Compare July 22, 2018 04:50
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 <[email protected]>
@bgrainger bgrainger force-pushed the prepared-commands branch from 5c747b2 to d7557ec Compare July 22, 2018 04:59
@bgrainger bgrainger force-pushed the prepared-commands branch 2 times, most recently from 85dd154 to 0133371 Compare July 22, 2018 05:12
Signed-off-by: Bradley Grainger <[email protected]>
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 <[email protected]>
@bgrainger bgrainger force-pushed the prepared-commands branch 2 times, most recently from bda352c to 22f5806 Compare July 23, 2018 23:47
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 <[email protected]>
@bgrainger bgrainger force-pushed the prepared-commands branch from 22f5806 to 8f84081 Compare July 24, 2018 03:20
Signed-off-by: Bradley Grainger <[email protected]>
@bgrainger bgrainger force-pushed the prepared-commands branch from e42117e to cee7719 Compare July 24, 2018 05:39
@bgrainger bgrainger merged commit 18ef235 into mysql-net:master Jul 24, 2018
@bgrainger bgrainger deleted the prepared-commands branch July 24, 2018 06:46
@bgrainger
Copy link
Member Author

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.

1 participant