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

Support of fb_cancel_operation() call [JDBC150] #192

Closed
firebird-automations opened this issue Nov 23, 2009 · 5 comments
Closed

Support of fb_cancel_operation() call [JDBC150] #192

firebird-automations opened this issue Nov 23, 2009 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Roman Rokytskyy (rrokytskyy)

Assigned to: Roman Rokytskyy (rrokytskyy)

New fb_cancel_operation() API call, allowing cancellation of the current activity being performed by some kind
of blocking API call in the given connection.

Syntax
ISC_STATUS fb_cancel_operation(ISC_STATUS* status_vector, isc_db_handle* db_handle, ISC_USHORT option);

Parameters

status vector (ISC_STATUS* status_vector) - A regular status vector pointer structure.

db_handle (pointer to a isc_db_handle) - A regular, valid database handle. It identifies the attachment.

option (unsigned short: symbol) - Determines the action to be performed. The option symbols are:
• fb_cancel_raise: cancels any activity related to the db_handle specified in the second parameter. The
effect will be that, as soon as possible, the engine will try to stop the running request and return an
exception to the caller via the status vector (parameter 1).
"..as soon as possible" will be, under normal conditions, at the next rescheduling point.
• fb_cancel_disable: disables execution of fb_cancel_raise requests for the specified attachment. It can be
useful when your program is executing critical operations, such as cleanup, for example.
• fb_cancel_enable: re-enables delivery of a cancel execution that was previously disabled. The 'cancel'
state is effective by default, being initialized when the attachment is created.
• fb_cancel_abort: : forcibly close client side of connection. Useful if you need to close a connection urgently.
All active transactions will be rolled back by the server. 'Success' is always returned to the application.
Use with care !

@firebird-automations
Copy link
Author

Commented by: Roman Rokytskyy (rrokytskyy)

Wire protocol implemented, works. The mapping for the JNI proxy is missing at the moment.

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: In Progress [ 3 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

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

1 participant