Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of DataAdapter.SelectCommand.Cancel [DNET150] #160

Closed
firebird-automations opened this issue Jan 4, 2008 · 3 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: Chris Wilson (cwilson)

When I try to invoke this command, I get an error message that it is not supported. I trap that of course, and just ignore the cancel, so that's the workaround. However, I've learned that this command can be very useful.

Consider the problem of a long da.fill operation. Normally you start it and just have to wait. Even if you run it in a background thread, it has to play out. With the SelectCommand.Cancel (which works for other providers), I can handle the datatable rowchanged event and look for a global "cancelled" variable I set elsewhere; if set I issue the SelectCommand.Cancel method and I'm good to go.

Strongly recommended.

P.S., the command works for OleDB and SQLServer, but it ignored by SQLite.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

assignee: Carlos Guzman Alvarez [ carlosga_fb ] => Jiri Cincura [ cincura_net ]

@firebird-automations
Copy link
Author

Commented by: @cincuranet

Firebird doesn't support query cancelation via some call [in next FB2.1 you will be able to kill running query via monitoring tables, but it's not a common way].

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants