Registration duration

The registration of a callback survives until one of the following conditions is met:
  • The connection on which the callback is registered closes (either the UDR exits or the mi_close() function executes).
  • The DataBlade® API calls the callback, which happens for state-transition callbacks when one of the following events occurs:
    • MI_EVENT_SAVEPOINT
    • MI_EVENT_COMMIT_ABORT
    • MI_EVENT_POST_XACT
    • MI_EVENT_END_STMT
    • MI_EVENT_END_XACT
    • MI_EVENT_END_SESSION
  • You explicitly unregister the callback with the mi_unregister_callback() function.