Bug #21578 | Error with TEXT fields through ODBC and DELPHI | ||
---|---|---|---|
Submitted: | 11 Aug 2006 6:39 | Modified: | 31 Aug 2006 6:31 |
Reporter: | Albert Molina | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / ODBC | Severity: | S1 (Critical) |
Version: | 3.51.12 | OS: | Windows (Windows) |
Assigned to: | CPU Architecture: | Any |
[11 Aug 2006 6:39]
Albert Molina
[11 Aug 2006 17:08]
Tonci Grgin
Hi Albert and thanks for your problem report. Can you please do the following: * Attach full Delphi project showing the error to this report * Attach SQL script with tables and data needed to reproduce Did you try using SourceForge OpenODBC as a Delphi/MyODBC bridge?
[13 Aug 2006 21:11]
Albert Molina
Dear Tonci; Where can I find SourceForge OpenODBC ? In Sourceforge.net there is nothing that matches "OpenODBC"... perhaps DBExpres? Thanks.
[14 Aug 2006 5:15]
Tonci Grgin
Hi Albert. Home page: http://open-dbexpress.sourceforge.net/ Project Home Page: https://sourceforge.net/projects/open-dbexpress/ What about my requests? I'd like to see all the files needed attached to this bug report.
[22 Aug 2006 6:09]
Tonci Grgin
Delphi 6 source
Attachment: Bug21578-D.zip (application/x-zip-compressed, text), 1.45 KiB.
[22 Aug 2006 6:10]
Tonci Grgin
Test with empty table
Attachment: B21578-2.jpg (image/jpeg, text), 6.97 KiB.
[22 Aug 2006 6:11]
Tonci Grgin
Test with full table
Attachment: B21578-3.jpg (image/jpeg, text), 7.44 KiB.
[22 Aug 2006 6:25]
Tonci Grgin
Hi Albert. I can't repeat your problem. Test case is attached to report. MySQL 4.1.18 max-nt on Win XP SP2 (NET framework 2.0) with Delphi6 fully patched. HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\myodbc1 Driver REG_SZ C:\WINDOWS\system32\myodbc3.dll (3.51.12.0) DATABASE REG_SZ dbtest DESCRIPTION REG_SZ test OPTION REG_SZ 264 SERVER REG_SZ localhost UID REG_SZ root [SetupAPI Log] OS Version = 5.1.2600 Service Pack 2 Platform ID = 2 (NT) Service Pack = 2.0 Suite = 0x0100 Product Type = 1 Architecture = x86 Module[ 1] [C:\PROGRAM FILES\COMMON FILES\SYSTEM\OLE DB\MSDADC.DLL] Company Name: Microsoft Corporation File Description: Microsoft Data Access - OLE DB Data Conversion Stub Product Version: (2.81:1117.0) File Version: (2.81:1117.0) File Size (bytes): 4096 File Date: Wed Aug 04 09:56:42 2004 Module has internal symbols. Module[ 2] [C:\PROGRAM FILES\COMMON FILES\SYSTEM\ADO\MSADO15.DLL] Company Name: Microsoft Corporation File Description: Microsoft Data Access - ActiveX Data Objects Product Version: (2.81:1117.0) File Version: (2.81:1117.0) File Size (bytes): 536576 File Date: Wed Aug 04 09:56:42 2004 Module has internal symbols. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.18-nt-max mysql> use test; Database changed mysql> create table b21578e (ID Int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, -> TFld MEDIUMTEXT); Query OK, 0 rows affected (0.03 sec) mysql> create table b21578f (ID Int UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, -> TFld MEDIUMTEXT); Query OK, 0 rows affected (0.05 sec) mysql> insert into b21578f VALUES (NULL,"01234567890123456789ABCDEFGHIJKLMNOPRST UVZabcdefghijklmnoprstuvz0123456789012345678901234567890123456789ABCDEFGHIJKLMNO PRSTUVZabcdefghijklmnoprstuvz0123456789"); Query OK, 1 row affected (0.00 sec) mysql> select * from b21578f\G *************************** 1. row *************************** ID: 1 TFld: 01234567890123456789ABCDEFGHIJKLMNOPRSTUVZabcdefghijklmnoprstuvz0123456789 012345678901234567890123456789ABCDEFGHIJKLMNOPRSTUVZabcdefghijklmnoprstuvz012345 6789 1 row in set (0.00 sec) mysql> select LENGTH(TFld) from b21578f; +--------------+ | LENGTH(TFld) | +--------------+ | 158 | +--------------+ 1 row in set (0.00 sec) mysql> quit Bye
[22 Aug 2006 6:36]
Albert Molina
Dear Toncy; Now I can't test it with Delphi 6, I'm using Delphi 5 Can you test this with Delphi 5 ? Thanks.
[22 Aug 2006 6:48]
Tonci Grgin
Albert, it is impossible for me to test on Delphi 5... You can try upgrading your OS and/or MySQL server and see if problem goes away. If not, you will have to upgrade Delphi.
[31 Aug 2006 6:31]
Albert Molina
Dear Toncy; I have tested this example with Delphi 7 and it allready works bad, so i think that Delphi is not the problem. I use the same ODBC client driver to conect: myodbc3.dll (3.51.12.0) I have seen you used a MySQL server with version 4.1.18 and my MySQL server is version 4.1.14, so I will try to use a newer version... I will say you something... and I hope it will be good news! Albert
[31 Aug 2006 8:36]
Tonci Grgin
Albert, according to our SOP I am obliged to use latest server. Anyway, I can't change my ruling on this since I made test case and checked. Hope you'll find what's wrong but I'm sure it isn't MyODBC. Thanks for your interest in MySQL.