HistHookInsertErrorQRecord
- Last UpdatedJun 06, 2017
- 1 minute read
Description:
The HistHookInsertErrorQRecord function is called by the HistQReader during insertion of data in the ErrorQ table. When the function is called, it returns either an ErrorQ SQL Insert query or NULL. If the insert query is returned, the HistQReader executes the query and inserts the data in the ErrorQ table. If NULL is returned, the default implementation of insertion into ErrorQ holds good.
Syntax
char* HistHookInsertErrorQRecord(char* szMsg, char* szErrorMsg)
Parameters:
-
szMsg
-
Type: char*
-
Description: Contains the SQL query which failed during its execution in ReportQReader
-
-
szErrorMsg
-
Type: char*
-
Description: Contains information of the error message that occurred during the insertion of the szMsg query
-
Return type: char*
This function returns an insert SQL query, which inserts the record in the ErrorQ table. The returned string must remain allocated (that is, it must return a static buffer).