Bug #31220 SQLFetch or SQLFetchScroll returns negative data length using SQL_C_WCHAR
Submitted: 27 Sep 2007 0:22 Modified: 14 Mar 2008 18:41
Reporter: Viktor Ferenczi Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S2 (Serious)
Version:3.51.20r750 OS:Linux (Ubuntu Feisty, up-to-date)
Assigned to: Jess Balint CPU Architecture:Any
Tags: buffer, crash, LENGTH, negative, overflow, segfault, segmentation fault, SQLFetch, SQLFetchScroll, string, varchar

File: Maximum allowed size is 50MB.
Description:
Privacy:

If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.

To split a large file:

[27 Sep 2007 0:25] Viktor Ferenczi
unixODBC trace output

Attachment: mysql-unixODBC-trace.log.bz2 (application/x-bzip, text), 25.33 KiB.

[3 Oct 2007 14:53] Bogdan Degtyariov
Test case with _W functions

Attachment: bug31220.c (text/plain), 2.73 KiB.

[23 Feb 2008 5:37] Jess Balint
fix + test

Attachment: bug31220.diff (application/octet-stream, text), 1.91 KiB.