Skip to content

Implement prepared commands#534

Merged
bgrainger merged 11 commits into
mysql-net:masterfrom
bgrainger:prepared-commands
Jul 24, 2018
Merged

Implement prepared commands#534
bgrainger merged 11 commits into
mysql-net:masterfrom
bgrainger:prepared-commands

Conversation

@bgrainger
Copy link
Copy Markdown
Member

@bgrainger bgrainger commented Jul 22, 2018

No description provided.

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>
@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 <bgrainger@gmail.com>
@bgrainger bgrainger force-pushed the prepared-commands branch from 5c747b2 to d7557ec Compare July 22, 2018 04:59
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 July 22, 2018 05:12
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 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 <bgrainger@gmail.com>
@bgrainger bgrainger force-pushed the prepared-commands branch from 22f5806 to 8f84081 Compare July 24, 2018 03:20
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@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
Copy Markdown
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