使用MySQL.data.dll连接在查询非varchar类型的数据字段时就会报错,select count(*) 带有非varchar类型字段如int,bit,decimal类型都会报错System.Exception: The given key ‘83’ was not present in the dictionary
/* New protocol with 16 bytes to describe server characteristics */
owner.ConnectionCharSetIndex = (int)packet.ReadByte();
if (owner.ConnectionCharSetIndex == 83)
{
owner.ConnectionCharSetIndex = 46;
}