Bug #30746 | Can not use reader.GetBytes when the column is binary / varbinary | ||
---|---|---|---|
Submitted: | 31 Aug 2007 10:13 | Modified: | 28 Oct 2009 17:36 |
Reporter: | xu ziyan | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 1.0.10.1 | OS: | Windows (Xp sp2) |
Assigned to: | CPU Architecture: | Any |
[31 Aug 2007 10:13]
xu ziyan
[31 Aug 2007 10:22]
xu ziyan
I traced the source code of reader.cs, in GetBytes function, I found that if the column is defined as binary / varbinary, the variant 'val' is MySqlString type, not MySqlBinary type. So that it throws an exception of "GetBytes can only be called on binary columns".
[6 Sep 2007 3:37]
xu ziyan
How about this issue?
[21 Sep 2007 22:31]
Reggie Burnett
This is a tough issue since so many operations with mysql return string data as binary. Sorry this has taken so long but so often we have to work around server issues.
[24 Sep 2007 1:56]
xu ziyan
I know this might be a issue very difficult to resolve. And I can change the column type to Bolb. That is OK. But what make me angry is you (I mean MySQL AB, not you, Reggie.) said you've fixed the issue 25605 and submitted some test codes, but it seems can not pass. Did you really run this test? Should I believe your product? :(
[28 Oct 2009 17:36]
Reggie Burnett
We no longer support our connector product on .net 1.0 or 1.1. Please use one of our 5.x or 6.x products.