You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client_source/sqlplus/ut_run.sql
+7-24Lines changed: 7 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -253,36 +253,19 @@ declare
253
253
return 'false';
254
254
end;
255
255
256
-
function parse_source_path_param(a_params ut_varchar2_list) return varchar2 is
256
+
function parse_path_param(a_params ut_varchar2_list, a_param_name varchar2) return varchar2 is
257
257
l_path varchar2(4000);
258
258
begin
259
259
begin
260
-
selectsource_path
260
+
selectparam_value
261
261
into l_path
262
-
from (select regexp_substr(column_value,'-source_path\=(.*)',1,1,'c',1) assource_pathfrom table(a_params) )
263
-
wheresource_pathis not null;
262
+
from (select regexp_substr(column_value,'-'||a_param_name||'\=(.*)',1,1,'c',1) asparam_valuefrom table(a_params) )
263
+
whereparam_valueis not null;
264
264
exception
265
265
when no_data_found then
266
266
l_path :='-';
267
267
when too_many_rows then
268
-
raise_application_error(-20000, 'Parameter "-source_path=source_path" defined more than once. Only one "-source_path=source_path" parameter can be used.');
269
-
end;
270
-
return l_path;
271
-
end;
272
-
273
-
function parse_test_path_param(a_params ut_varchar2_list) return varchar2 is
274
-
l_path varchar2(4000);
275
-
begin
276
-
begin
277
-
select test_path
278
-
into l_path
279
-
from (select regexp_substr(column_value,'-test_path\=(.*)',1,1,'c',1) as test_path from table(a_params) )
280
-
where test_path is not null;
281
-
exception
282
-
when no_data_found then
283
-
l_path :='-';
284
-
when too_many_rows then
285
-
raise_application_error(-20000, 'Parameter "-test_path=test_path" defined more than once. Only one "-test_path=test_path" parameter can be used.');
268
+
raise_application_error(-20000, 'Parameter "-'||a_param_name||'='||a_param_name||'" defined more than once. Only one "-'||a_param_name||'='||a_param_name||'" parameter can be used.');
0 commit comments