Mytable: catching & displaying the SQL update

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sean

Mytable: catching & displaying the SQL update

Post by sean » Wed 24 Nov 2004 19:43

Hi,

I was wondering if its possible to catch the SQL UPDATE command sent to the server, when a post is done, and show it to the user first for confirmation? (I'd like to confirm changes)

Perhaps tying in code code on OnUpdateRecord()?

Thanks in advance,
Sean

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Re: Mytable: catching & displaying the SQL update

Post by Ikar » Thu 25 Nov 2004 08:24

Suppose, it would be correct to process OnBeforePost event and formulate a question to the user not as SQL DML, but in more usual form.

sean

Post by sean » Fri 26 Nov 2004 11:26

But how can I access the DML command, is there a property to the table?

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Fri 26 Nov 2004 16:09

You really are unable to get text of DML in OnBeforePost. So you should use another event for processing.

Post Reply