| 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: | |
| 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 | ||
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:
- On *nix platforms use the split command e.g. 
split -b 50MB <my_large_archive> <my_split_archive_prefix> - On windows use WinZip or a similar utility to split the large file
 
   [27 Sep 2007 0:25]
   Viktor Ferenczi        
  
 
   [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.
