Subject RE: [IBO] Why no callback for tib_dsql?
Author Jason Wharton
> I was going to add a callback to a tib_dsql object for some
> SQL statements that take a particularly long time to run, so
> that I can show the user a progress bar. However, I noticed
> that tib_dsql does not have a calback event. Why is that?
>
> My idea was to switch to tib_query, but I was wondering if
> the callback would even work for non-select queries. Does
> the callback work with Update statements? How about
> schema-changing statements, such as index creation, etc.?

The callback is only on datasets because the callbacks are between fetch
operations on the server. When using TIB_DSQL there are no opportunities to
produce callbacks. It's actually a little misrepresentative to call them
callbacks because it isn't the server actually facilitating client
interruption via callbacks. It is purely a callback from the IBO core
fetching routines only.

Jason