Ken <[EMAIL PROTECTED]> wrote: > A suggestion, instead of using an "integer code" make it a bit mask so that > any and all permutataions of the defined events can be executed? > > That way the tracing function can be installed, and the flag can be set to > disabled. Effectively disabling trace. Not sure if thats something useful or > not but just a thought. > > 0x00 NO_TRACE > 0x01 SQL_BEGIN > 0x02 SQL_END > 0x04 TRIGGER_BEGIN > 0x08 TRIGGER_END > > Etc... > > Regards, > Ken >
The flag is on the callback - not on the registration function. Each callback is for one and only one event. If any filtering is to occur, it must occur in the callback. We cannot add another parameter to sqlite3_trace() because that really would break backwards compatibility. -- D. Richard Hipp <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------

