修复generate_procoverage_report参数错误问题

This commit is contained in:
li-qinlang
2024-02-05 15:45:47 +08:00
parent cbe0c0e1af
commit c249b6f861
3 changed files with 27 additions and 2 deletions

View File

@ -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) {

View File

@ -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
------

View File

@ -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;