Bug #36067 | NdbRecAttr->int32_value() returns unsigned value for TINYINT,SMALLINT,MEDIUMINT | ||
---|---|---|---|
Submitted: | 14 Apr 2008 18:19 | Modified: | 14 Apr 2008 20:58 |
Reporter: | David Shrewsbury | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Cluster: NDB API | Severity: | S3 (Non-critical) |
Version: | 5.1 | OS: | Any |
Assigned to: | Frazer Clement | CPU Architecture: | Any |
[14 Apr 2008 18:19]
David Shrewsbury
[14 Apr 2008 18:20]
David Shrewsbury
C++ code
Attachment: bug.cc (text/x-c++src), 4.23 KiB.
[14 Apr 2008 20:53]
Jonas Oreland
shouldnt one use NbdRecAttr::short_value() for those datatypes ?
[14 Apr 2008 20:58]
Tomas Ulin
So you have to make sure you use the correct conversion function. The below 3 should be the correct ones for these types. If you want to have a general function for retriving thew data without knowing the type, you will have to create your own "switch" statement. Int32 medium_value() const; short short_value() const; Int8 int8_value() const; BR, Tomas