Adjust debug mode from PL/SQL (on demand)

This commit is contained in:
Jan Kvetina 2022-01-30 15:38:18 +01:00
parent d693196df8
commit 8ecb815c01
2 changed files with 19 additions and 0 deletions

View File

@ -242,6 +242,15 @@ CREATE OR REPLACE PACKAGE app AS
--
-- Option to change DEBUG mode
--
PROCEDURE set_debug (
in_status BOOLEAN := TRUE
);
--
-- Return current owner (because APEX dont like using USER)
--

View File

@ -309,6 +309,16 @@ CREATE OR REPLACE PACKAGE BODY app AS
PROCEDURE set_debug (
in_status BOOLEAN := TRUE
)
AS
BEGIN
APEX_APPLICATION.G_DEBUG := in_status;
END;
FUNCTION get_owner (
in_app_id apps.app_id%TYPE := NULL
)