newbie question

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

newbie question

Post by snorkel » Tue 08 Aug 2006 15:12

Hi,
Just wondering if it is possible to cancel a long running query?

I see that the query component has a cancel method, but not sure it that is what it is for.

Thanks,

Snorkel

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 08 Aug 2006 15:27

That is not possible , if I remember this is a server side feature that mysql doesn't have

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Wed 09 Aug 2006 09:05

You can create additional connection and execute 'KILL :ThreadID' from it.
Use TMyConnection.ThreadId property to fill ThreadID parameter value.
TDataSet.Cancel method cancels modifications to the active record if those changes are not yet posted, and TDataSet.Cancel is not related to breaking execution.

Post Reply