When executing a command that returns multiple result sets, calling GetSchemaTable on the first result set caches the schema for the lifetime of the MySqlDataReader.
using (varcmd=newMySqlCommand("select * fromtable1; select*fromtable2;", connection))using (varreader=cmd.ExecuteReader())
{
do
{
// always returns the schema for 'table1'vartable=reader.GetSchemaTable();
while (reader.Read())
{
}
} while (reader.NextResult());
}
The text was updated successfully, but these errors were encountered:
When executing a command that returns multiple result sets, calling
GetSchemaTable
on the first result set caches the schema for the lifetime of theMySqlDataReader
.The text was updated successfully, but these errors were encountered: