5.4 버전 이벤트 hook 추가

This commit is contained in:
thisgun
2020-10-20 19:06:08 +09:00
parent bf13cf82ee
commit 0e2cb366e6

View File

@ -1606,15 +1606,19 @@ function sql_query($sql, $error=G5_DISPLAY_SQL_ERROR, $link=null)
}
}
$end_time = $is_debug ? get_microtime() : 0;
if($result && $is_debug) {
// 여기에 실행한 sql문을 화면에 표시하는 로직 넣기
$g5_debug['sql'][] = array(
'sql' => $sql,
'start_time' => $start_time,
'end_time' => get_microtime(),
'end_time' => $end_time,
);
}
run_event('sql_query_after', $result, $sql, $start_time, $end_time);
return $result;
}