Bug #28342 | MyODBC 3/ADO extra spaces in data after writing with appendchunk into blob field | ||
---|---|---|---|
Submitted: | 9 May 2007 22:47 | Modified: | 9 May 2007 22:48 |
Reporter: | Erica Moss | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.14 | OS: | Windows (XP sp2) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[9 May 2007 22:47]
Erica Moss
[9 May 2007 22:48]
Erica Moss
ODBC trace file
Attachment: SQL.LOG (application/octet-stream, text), 78.34 KiB.
[26 Aug 2007 10:55]
Kent Boortz
Most likely ADODB somehow sees the blob as a text blob with unicode text, and writes in it that way taking two bytes for each ascii characters. Unclear when this happen, some clue maybe in the text starting with "ADO 2.1 and later might..." at the page http://support.microsoft.com/kb/194975 Maybe this is not a bug at all? Storing an ADO string (that is of 'ntext' type?) with AppendChunk into a Unicode capable SQL data type will use two bytes per character? Else if storing a string with a character that doesn't fit into 8 bits would make storing and retrieving the same string from ADO impossible. A column of type TEXT might be another matter, as it as a specified character set.
[3 Dec 2010 4:29]
Bogdan Degtyariov
Verified in Connector/ODBC 3.51.27 and 5.1.8