Problem with TMySQLmonitor
Posted: Sun 24 Sep 2006 09:03
I have a problem with TMySQLmonitor:
First I log a transaction (with TMySQLMonitor) that is generated by adding and posting a new record to tbl_orders (see example SQL) through a normal dbgrid and dbedits.
Then I would like to execute this logged SQL statement again by calling it to the database through a TMyCommand.
This generates an error. Why does MySQL accept the initial logged SQL statement, and not the same SQL statement run again through TMyCommand???
Here is the logged SQL statement:
INSERT INTO tbl_orders
(ordr_ID, ordr_DateTime, ordr_LocationID, ordr_EmployeeID)
VALUES
(:1, :2, :3, :4)
:1(Integer,IN)=119
:2(DateTime,IN)=24-9-2006
:3(Integer,IN)=1
:4(Integer,IN)=1
Should I make change to any components or to MySQL to get it to work??
Any help is very much appreciated!!
Krimson
First I log a transaction (with TMySQLMonitor) that is generated by adding and posting a new record to tbl_orders (see example SQL) through a normal dbgrid and dbedits.
Then I would like to execute this logged SQL statement again by calling it to the database through a TMyCommand.
This generates an error. Why does MySQL accept the initial logged SQL statement, and not the same SQL statement run again through TMyCommand???
Here is the logged SQL statement:
INSERT INTO tbl_orders
(ordr_ID, ordr_DateTime, ordr_LocationID, ordr_EmployeeID)
VALUES
(:1, :2, :3, :4)
:1(Integer,IN)=119
:2(DateTime,IN)=24-9-2006
:3(Integer,IN)=1
:4(Integer,IN)=1
Should I make change to any components or to MySQL to get it to work??
Any help is very much appreciated!!
Krimson