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:
None 
Category:Connector / NET Severity:S3 (Non-critical)
Version:6.0.4 OS:Any
Assigned to: CPU Architecture:Any
Tags: GetSByte

[9 Aug 2009 12:32] Yuriy Margulis
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");
[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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
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.