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 

MySQL Problem!

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





PostPosted: Wed Jan 21, 2004 6:41 pm    Post subject: MySQL Problem! Reply with quote



I am trying to do this:

clDataSet->Insert();
clDataSet->Fields->FieldByName("Estado")->AsString =
String(meEstado->Text);
clDataSet->Fields->FieldByName("Descricao")->AsString =
String(meDescricao->Text);
clDataSet->Post();
clDataSet->ApplyUpdates(-1);

clDataSet is a TSQLClientDataSet, the db server is MySQL all connection are
ok!
Then I have put a SQLMonitor and got this log for this code:

MySQL - mysql_real_query
BEGIN WORK
MySQL - mysql_real_query
MySQL - mysql_escape_string
MySQL - mysql_escape_string
insert into tbesta;
(Estado, Descricao)
values
('TT', 'test teste')

MySQL - mysql_real_query
MySQL - mysql_error
COMMIT
MySQL - mysql_real_query
SET AUTOCOMMIT=1
MySQL - mysql_real_query

The probelm is why TSQLClientDataSet is puting a ";" after tbesta (the name
of my table at server).

Thanks
Arnaldo Giacomitti Junior.



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.