Re: MySqlParameter of type Int32 gets "only byte arrays" etc from MySqlBinary
Posted by: Greg Adams
Date: December 27, 2005 07:51AM

The issue seems to be with the use of a MySqlParameter with a type of MySqlDbType.UInt32. I have traced the serialization logic to a switch statement in MySqlValue GetMySqlValue. Having reached the decision logic, with type=UInt32, unsigned=false, binary=true, the logic drops to the default path, as there is no case for MySqlDbType.UInt32. In the default, because type is binary, it is sent to MySqlBinary which then exceptions out because it is not supposed to receive requests to serialize anything but strings and byte arrays.

I have circumvented the issue, for now, by only using signed integer types.

Options: ReplyQuote


Subject
Written By
Posted
Re: MySqlParameter of type Int32 gets "only byte arrays" etc from MySqlBinary
December 27, 2005 07:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.