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())
// always returns the schema for 'table1'vartable=reader.GetSchemaTable();
} while (reader.NextResult());
The text was updated successfully, but these errors were encountered: