BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

D2005+DBExpress+MySQL: Wrong field types?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Ralf Kaiser
Guest





PostPosted: Fri Jul 22, 2005 12:10 pm    Post subject: D2005+DBExpress+MySQL: Wrong field types? Reply with quote



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





PostPosted: Fri Jul 22, 2005 1:50 pm    Post subject: Re: D2005+DBExpress+MySQL: Wrong field types? Reply with quote



"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





PostPosted: Mon Aug 08, 2005 11:40 am    Post subject: Re: D2005+DBExpress+MySQL: Wrong field types? Reply with quote




what is libmysql.dll version ?
am can not solve this problem

thank for any idea
tim
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.