The isUserQuery() function
Verifies that the SPUPad is being called by a user query, not an internal routine such as Just-in-Time Statistics, which are running the function for query optimization planning.
Syntax
The function has the
following syntax:
extern "C" bool isUserQuery()Description
Call this function to ensure that it returns “true” before it operates on the SPUPad. The query returns true when the function is being executed during a user query, and false when the function is being executed as part of an internal process such as JIT statistics.