| Bug #46620 | GetSByte returns a byte value instead of sbyte | ||
|---|---|---|---|
| Submitted: | 9 Aug 2009 12:32 | Modified: | 11 Aug 2009 14:50 |
| Reporter: | Yuriy Margulis | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Connector / NET | Severity: | S3 (Non-critical) |
| Version: | 6.0.4 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | GetSByte | ||
[10 Aug 2009 17:57]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/80470 706 Reggie Burnett 2009-08-10 - fixed GetSByte method to actually return an sbyte (bug #46620)
[10 Aug 2009 18:05]
Reggie Burnett
Fixed in 5.2.8, 6.0.5, and 6.1.1+
[11 Aug 2009 14:50]
Tony Bedford
An entry was added to the 5.2.8, 6.0.5 and 6.1.1 changelogs: In the MySqlDataReader class the GetSByte function returned a byte value instead of an sbyte value.

Description: in MySqlDataReader class GetSByte function returns byte value instead of sbyte //datareader.cs public byte GetSByte(string name) { return GetByte(GetOrdinal(name)); } How to repeat: dr -> MySqlDataReader dr.GetSByte("col");