Skip to content

Commit a63efef

Browse files
committed
#136 fix (still needs to be cleaned up)
1 parent 39727b4 commit a63efef

3 files changed

Lines changed: 32 additions & 27 deletions

File tree

releases/logger_3.1.1.zip

91.3 KB
Binary file not shown.

source/procedures/logger_configure.plb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ begin
144144
-- l_sql := q'[alter trigger BI_LOGGER_LOGS compile PLSQL_CCFLAGS=']'||l_variables||q'[' reuse settings]';
145145
-- execute immediate l_sql;
146146

147-
l_sql := q'!alter trigger biu_logger_prefs compile PLSQL_CCFLAGS='CURRENTLY_INSTALLING:FALSE'!';
147+
-- -- TODO mdsouza: 3.1.1 org l_sql := q'!alter trigger biu_logger_prefs compile PLSQL_CCFLAGS='CURRENTLY_INSTALLING:FALSE'!';
148+
l_sql := q'!alter trigger biu_logger_prefs compile!';
148149
execute immediate l_sql;
149150

150151
-- just in case this is a re-install / upgrade, the global contexts will persist so reset them

source/tables/logger_prefs.sql

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,33 @@ end;
2727
/
2828

2929

30+
-- #TODO:130 mdsouza: logger 3.1.1 fix. Removed currently_installing
3031
-- Append existing PLSQL_CCFLAGS
3132
-- Since may be set with existing flags (specifically no_op)
32-
var cur_plsql_ccflags varchar2(500);
33-
34-
declare
35-
parnam varchar2(256);
36-
intval binary_integer;
37-
strval varchar2(500);
38-
partyp binary_integer;
39-
begin
40-
partyp := dbms_utility.get_parameter_value('plsql_ccflags',intval, strval);
41-
42-
if strval is not null then
43-
strval := ',' || strval;
44-
end if;
45-
:cur_plsql_ccflags := strval;
46-
end;
47-
/
48-
49-
-- Convert bind variable to substitution string
50-
-- https://blogs.oracle.com/opal/entry/sqlplus_101_substitution_varia
51-
column cur_plsql_ccflags new_value cur_plsql_ccflags
52-
select :cur_plsql_ccflags cur_plsql_ccflags from dual;
53-
54-
alter session set plsql_ccflags='currently_installing:true&cur_plsql_ccflags'
55-
/
33+
-- var cur_plsql_ccflags varchar2(500);
34+
--
35+
-- declare
36+
-- parnam varchar2(256);
37+
-- intval binary_integer;
38+
-- strval varchar2(500);
39+
-- partyp binary_integer;
40+
-- begin
41+
-- partyp := dbms_utility.get_parameter_value('plsql_ccflags',intval, strval);
42+
--
43+
-- if strval is not null then
44+
-- strval := ',' || strval;
45+
-- end if;
46+
-- :cur_plsql_ccflags := strval;
47+
-- end;
48+
-- /
49+
--
50+
-- -- Convert bind variable to substitution string
51+
-- -- https://blogs.oracle.com/opal/entry/sqlplus_101_substitution_varia
52+
-- column cur_plsql_ccflags new_value cur_plsql_ccflags
53+
-- select :cur_plsql_ccflags cur_plsql_ccflags from dual;
54+
--
55+
-- alter session set plsql_ccflags='currently_installing:true&cur_plsql_ccflags'
56+
-- /
5657

5758
create or replace trigger biu_logger_prefs
5859
before insert or update on logger_prefs
@@ -70,7 +71,9 @@ begin
7071
:new.pref_value := upper(:new.pref_value);
7172
end if;
7273

73-
$if $$currently_installing is null or not $$currently_installing $then
74+
-- #TODO:50 mdsouza: 3.1.1
75+
-- #TODO:100 mdsouza: if removing then decrease indent
76+
-- $if $$currently_installing is null or not $$currently_installing $then
7477
-- Since logger.pks may not be installed when this trigger is compiled, need to move some code here
7578
if 1=1
7679
and :new.pref_type = logger.g_pref_type_logger
@@ -114,7 +117,8 @@ begin
114117

115118
-- this is because the logger package is not installed yet. We enable it in logger_configure
116119
logger.null_global_contexts;
117-
$end
120+
-- #TODO:60 mdsouza: 3.1.1
121+
-- $end
118122
$end -- $$logger_no_op_install
119123
end;
120124
/

0 commit comments

Comments
 (0)