 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ralf Kaiser Guest
|
Posted: Fri Jul 22, 2005 12:10 pm Post subject: D2005+DBExpress+MySQL: Wrong field types? |
|
|
Hello,
i try to use MySQL with Delphi 2005 and DBExpress.
I have simple query:
SQLQuery.SQL.Text := 'SELECT TEXTCOLUMN FROM MYTABLE';
SQLQuery.Open;
SQLQuery.First;
ShowMessage(SQLQuery.Fileds[0].AsString);
When i execute this code (TEXTCOLUMN is a VarChar(20)-Field), the field is
returned as Float-field!
For some reason the type of the field is not determined correctly.
Does anone have a hint what is going wrong here?
Config: D2005 Ent + Update 3, MySQL 4.0.18 (have tried 4.1 too)
Thanks in advance,
Ralf
|
|
| Back to top |
|
 |
Ralf Kaiser Guest
|
Posted: Fri Jul 22, 2005 1:50 pm Post subject: Re: D2005+DBExpress+MySQL: Wrong field types? |
|
|
"Ralf Kaiser" <ralf-kaiser (AT) eurobrief (DOT) de> schrieb im Newsbeitrag
news:42e0e13a$1 (AT) newsgroups (DOT) borland.com...
| Quote: | When i execute this code (TEXTCOLUMN is a VarChar(20)-Field), the field is
returned as Float-field!
For some reason the type of the field is not determined correctly.
Does anone have a hint what is going wrong here?
Config: D2005 Ent + Update 3, MySQL 4.0.18 (have tried 4.1 too)
|
Hi,
for anyone who has such a problem:
I found out that another software had installed a newer version of the
libMySQL.dll in the system directory, so the wrong version of this DLL was
used. With the correct version it works!
Ciao,
Ralf
|
|
| Back to top |
|
 |
tim Guest
|
Posted: Mon Aug 08, 2005 11:40 am Post subject: Re: D2005+DBExpress+MySQL: Wrong field types? |
|
|
what is libmysql.dll version ?
am can not solve this problem
thank for any idea
tim
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|