Bug #27790 | MyODBC 3.51.14 returns wrong length for varchar binary columns | ||
---|---|---|---|
Submitted: | 12 Apr 2007 18:32 | Modified: | 3 May 2007 17:45 |
Reporter: | Tom Price | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.14 | OS: | Windows (2000 SP4) |
Assigned to: | CPU Architecture: | Any |
[12 Apr 2007 18:32]
Tom Price
[12 Apr 2007 19:52]
Tom Price
MySQL version is 4.0.20a-nt on Windows 2000 SP4. Tables are MyISAM.
[14 Apr 2007 10:45]
Tonci Grgin
Hi Tom and thanks for your report. MS Visual FoxPro can not process VARCHAR fields longer than 255 characters, nor can Delphi, for example (same mapping to Memo happens). We are aware of this problem (please see Bug#10491). This represents grave issue for all connectors. They can't work around it, at least not reliably. Ad hoc user queries do not allow connector to distinguish between "SHOW CREATE TABLE", where it should treat BIANRY as UTF8, and "SELECT varbinary_col FROM some_table", where it really should be binary... I'm setting this to "Verified" even though it's actually duplicate of Bug#10491. Bogdan, can we do anything about this?
[2 May 2007 18:12]
Tom Price
A "show table status" query using 3.51.14 returns columns "name", "engine", "row-format", "collation", "create_options", and "comment" which are incorrectly converted to "General" fields by Visual Foxpro. General fields are typically used to store OLE objects. This poses a very serious issue. Unlike memo fields, general fields cannot be programmatically converted to a character data type.
[3 May 2007 5:49]
Tonci Grgin
Tom, as I said, FoxPro column mapping is nothing we can fix. Even though the behavior bothering you was introduced in 3.51.14 for a *good* reason seems we will have to roll back the changes. Please be patient until next release of MyODBC is available...
[3 May 2007 17:45]
Bogdan Degtyariov
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html