 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Arnaldo Giacomitti Junior Guest
|
Posted: Wed Jan 21, 2004 5:29 pm Post subject: MySQL Problem |
|
|
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 |
|
 |
Craig Stuntz [TeamB] Guest
|
Posted: Wed Jan 21, 2004 5:37 pm Post subject: Re: MySQL Problem |
|
|
Arnaldo Giacomitti Junior wrote:
| Quote: | I am trying to do this:
|
Message cancelled due to cross-post. Please read and follow Borland's
rules for the use of their server:
http://info.borland.com/newsgroups/guide.html
In the future, please choose a single, appropriate newsgroup for your
question.
Thank you,
-Craig
--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
InterBase Performance Monitor -- Analyze and control your IB7
server: http://delphi.weblogs.com/IBPerformanceMonitor
|
|
| 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
|
|