MySqlBinary exception without any MySqlBinary parameter
Posted by: vincent
Date: November 03, 2004 03:21AM

Hi,

calling a simple INSERT script, with 5 parameters, i get this exception:

'Only byte arrays can be serialized by MySqlBinary'

The exception is thrown by Serialize(PacketWriter writer, bool binary, object ourValue, int length) of the MySqlBinary class.

But none of the parameters are of the MySqlBinary type.

These are the 5 parameters:

("?Guid",MySqlDbType.VarChar,36,order.Guid.ToString()),
("?UserID",MySqlDbType.Int32,8,userID),
("?Remarks",MySqlDbType.LongBlob,order.Remarks.Length,order.Remarks),
("?Vat",MySqlDbType.Int32,8,order.VAT),
("?Created",MySqlDbType.Datetime,24,order.Created)

I don't have this issue with Beta 1.0.0.

cheers,
v

Options: ReplyQuote




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.