Bug #32171 ODBC Driver incorrectly parses large Unsigned Integers
Submitted: 7 Nov 2007 21:38 Modified: 30 Nov 2007 23:30
Reporter: Bob Hansen
Status: Closed
Category:Connector/ODBC Severity:S2 (Serious)
Version:3.51.20 OS:Mac OS X (10.4.10)
Assigned to: Jim Winstead Target Version:
Tags: odbc driver mac unsigned integer long sqlbindcol

File: Maximum allowed size is 500KB.
Description:
Privacy:

If the data you need to attach is more than 500KB, you should create a compressed archive of the data and a README file that describes the data with a filename that includes the bug number (example: bug-data-32171.zip), and use FTP to upload the archive to ftp://ftp.mysql.com/pub/mysql/upload/. Once you have uploaded the file, add a comment to this bug to notify us about it. Note: This directory is unlistable, which means that once you have uploaded your file, you will not be able to see it.

All entries become the exclusive editorial property of Sun Microsystems, Inc.

[12 Nov 2007 16:13] Bob Hansen
Test case to show incorrect ODBC parsing

Attachment: main.c (text/plain), 4.18 KiB.

[12 Nov 2007 22:10] Jim Winstead
Don't use atol() on an unsigned value

Attachment: bug32171.diff (text/plain), 2.04 KiB.