From 12f8d087d32e9f9f7bb4f616a29017f891d7f156 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Fri, 13 May 2022 22:29:37 -0300 Subject: [PATCH] Add defaults to RDB$PROFILER.PAUSE_SESSION and RDB$PROFILER.FINISH_SESSION parameters. --- doc/sql.extensions/README.profiler.md | 4 ++-- src/jrd/ProfilerManager.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/sql.extensions/README.profiler.md b/doc/sql.extensions/README.profiler.md index d25355c113..709561c45c 100644 --- a/doc/sql.extensions/README.profiler.md +++ b/doc/sql.extensions/README.profiler.md @@ -139,7 +139,7 @@ If `FLUSH` is `TRUE` the snapshot tables are updated with data up to the current Calling `RDB$PROFILER.PAUSE_SESSION(TRUE)` has the same semantics of calling `RDB$PROFILER.PAUSE_SESSION(FALSE)` followed by `RDB$PROFILER.FLUSH`. Input parameters: - - `FLUSH` type `BOOLEAN NOT NULL` + - `FLUSH` type `BOOLEAN NOT NULL` default `FALSE` ## Procedure `RESUME_SESSION` @@ -154,7 +154,7 @@ If `FLUSH` is `TRUE` the snapshot tables are updated with data of the finished s Calling `RDB$PROFILER.FINISH_SESSION(TRUE)` has the same semantics of calling `RDB$PROFILER.FINISH_SESSION(FALSE)` followed by `RDB$PROFILER.FLUSH`. Input parameters: - - `FLUSH` type `BOOLEAN NOT NULL` + - `FLUSH` type `BOOLEAN NOT NULL` default `TRUE` ## Procedure `CANCEL_SESSION` diff --git a/src/jrd/ProfilerManager.cpp b/src/jrd/ProfilerManager.cpp index a8bde29eb0..7d3c304f14 100644 --- a/src/jrd/ProfilerManager.cpp +++ b/src/jrd/ProfilerManager.cpp @@ -526,7 +526,7 @@ ProfilerPackage::ProfilerPackage(MemoryPool& pool) prc_executable, // input parameters { - {"FLUSH", fld_bool, false} + {"FLUSH", fld_bool, false, "true", {blr_literal, blr_bool, 1}} }, // output parameters { @@ -551,7 +551,7 @@ ProfilerPackage::ProfilerPackage(MemoryPool& pool) prc_executable, // input parameters { - {"FLUSH", fld_bool, false} + {"FLUSH", fld_bool, false, "false", {blr_literal, blr_bool, 0}} }, // output parameters {