Bug #11795 | DECIMAL fields returned incorrectly over ODBC | ||
---|---|---|---|
Submitted: | 7 Jul 2005 13:34 | Modified: | 24 Oct 2005 17:46 |
Reporter: | Lee Willis | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S1 (Critical) |
Version: | MySQL 5.0.6, MyODBC3.51.11 | OS: | Windows (Windows/Linux) |
Assigned to: | CPU Architecture: | Any |
[7 Jul 2005 13:34]
Lee Willis
[7 Jul 2005 15:25]
Jorge del Conde
Thanks for your bug report. I verified this bug using the latest version of myodbc.
[7 Jul 2005 15:25]
Jorge del Conde
Attatched screenshot
[7 Jul 2005 15:25]
Jorge del Conde
bug scrshot
Attachment: Image1.png (image/x-png, text), 27.06 KiB.
[8 Jul 2005 17:09]
Lee Willis
This looks like it may be the same problem as bug 11035, but I can't tell from that when the patch is likely to become available - it seems that there hasn't been a MyODBC release since February.
[13 Jul 2005 8:02]
Lee Willis
This can also be worked around now by using the following patch. This may not be the right fix (Might clients wish to treat NEWDECIMALs different from DECIMALs?) - however we already do this for VARCHAR vs. VAR_STRING so maybe it is ok. If you're having this problem this patch seems to resolve it at the server level [Previously linked bug resolves it at the ODBC driver level]
[13 Jul 2005 8:03]
Lee Willis
Patch to map MYSQL_TYPE_NEWDECIMAL to MYSQL_TYPE_DECIMAL
Attachment: decimal.patch (text/x-patch), 404 bytes.
[13 Jul 2005 8:03]
Lee Willis
Patch attached.
[18 Aug 2005 12:38]
Jens Martin Schlatter
I have the same problem with SAS/ACCESS to MySQL and the MySQL server version 5 together with the client version 5: DECIMAL() fields appear as character fields in SAS. So this is also a problem in the client.
[18 Aug 2005 13:52]
Jens Martin Schlatter
See also bug #9739
[24 Oct 2005 17:46]
Peter Harvey
Following given test using excel with c/odbc v3.51.12 and it works fine. This is not surprising as some fixs dealing with numeric types are included in this release.