-
Couldn't load subscription status.
- Fork 347
Description
From comment:
MySqlBatchshipped in 0.57.0; keeping this issue open to track implementing the abstract base classes and virtual methods.
The new API is defined in https://github.com/dotnet/corefx/issues/35135.
It seems like the general approach should be to concatenate all SQL from all commands in the batch into one string, substituting parameter values as we go. (That is, this doesn't provide any advantage over what the user can manually do already, but ensures that MySqlDbBatch isn't needlessly inefficient for database-independent code.)
Special attention will need to be taken if the user is mixing CommandType.Text and StoredProcedure in one batch, particularly if the stored procedure has out parameters.
- Do any MySQL Servers support batched prepared (binary) statements, or will the SQL still need to be parsed and split into individual statements if
Prepareis called?
A WIP PR is available in #637.