forked from huawei/openGauss-server
verification
This commit is contained in:
parent
20c383b5d5
commit
11265b12bc
|
|
@ -1439,6 +1439,8 @@ void instr_stmt_report_debug_query_id(uint64 debug_query_id)
|
||||||
|
|
||||||
inline void instr_stmt_track_param_query(const char *query)
|
inline void instr_stmt_track_param_query(const char *query)
|
||||||
{
|
{
|
||||||
|
if(query == NULL)
|
||||||
|
return;
|
||||||
if (CURRENT_STMT_METRIC_HANDLE->params == NULL) {
|
if (CURRENT_STMT_METRIC_HANDLE->params == NULL) {
|
||||||
CURRENT_STMT_METRIC_HANDLE->query = pstrdup(query);
|
CURRENT_STMT_METRIC_HANDLE->query = pstrdup(query);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue