修复generate_procoverage_report参数错误问题
This commit is contained in:
@ -2137,8 +2137,8 @@ static void get_proc_coverage(Oid func_oid, int* coverage)
|
||||
|
||||
Datum generate_procoverage_report(PG_FUNCTION_ARGS)
|
||||
{
|
||||
int beginId = PG_GETARG_INT64(0);
|
||||
int endId = PG_GETARG_INT64(1);
|
||||
int64 beginId = PG_GETARG_INT64(0);
|
||||
int64 endId = PG_GETARG_INT64(1);
|
||||
bool isDefault = false;
|
||||
|
||||
if (!u_sess->attr.attr_common.enable_proc_coverage) {
|
||||
|
||||
@ -1563,6 +1563,28 @@ select * from dbe_pldebugger.continue();
|
||||
0 | "anonymous block" | 0 | [EXECUTION FINISHED]
|
||||
(1 row)
|
||||
|
||||
generate_procoverage_report
|
||||
----------------------------------------------------------------------------------------------
|
||||
<html lang="en"><head><title>openGauss Procedure Coverage Report</title> +
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +
|
||||
<style>.unexecuted{background-color: #ff6230;} +
|
||||
.executed{background-color: #cad7fe;}.lineno{background-color: yellow;width: 120px;}</style>+
|
||||
</head><body class="pcr"> +
|
||||
<h1 class="wdr">Procedure Coverage Report</h1> +
|
||||
</body></html>
|
||||
(1 row)
|
||||
|
||||
generate_procoverage_report
|
||||
----------------------------------------------------------------------------------------------
|
||||
<html lang="en"><head><title>openGauss Procedure Coverage Report</title> +
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +
|
||||
<style>.unexecuted{background-color: #ff6230;} +
|
||||
.executed{background-color: #cad7fe;}.lineno{background-color: yellow;width: 120px;}</style>+
|
||||
</head><body class="pcr"> +
|
||||
<h1 class="wdr">Procedure Coverage Report</h1> +
|
||||
</body></html>
|
||||
(1 row)
|
||||
|
||||
select * from tmp_holder;
|
||||
res
|
||||
------
|
||||
|
||||
@ -485,4 +485,7 @@ select * from dbe_pldebugger.continue();
|
||||
select dbe_pldebugger.attach(nodename, port) from debug_info;
|
||||
select * from dbe_pldebugger.continue();
|
||||
|
||||
select generate_procoverage_report(9223372036854775807,9223372036854775807);
|
||||
select generate_procoverage_report(9223372036854775805,9223372036854775806);
|
||||
|
||||
select * from tmp_holder;
|
||||
Reference in New Issue
Block a user