Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39d144a

Browse files
committed
Changed how savepoint name is generated.
Resolves #982
1 parent b3973d0 commit 39d144a

5 files changed

Lines changed: 2 additions & 20 deletions

File tree

source/core/coverage/proftab.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ begin
3737
if l_tab_exist = 0 then
3838
execute immediate q'[create table plsql_profiler_units
3939
(
40-
runid number references plsql_profiler_runs,
40+
runid number(18) references plsql_profiler_runs,
4141
unit_number number, -- internally generated library unit #
4242
unit_type varchar2(128), -- library unit type
4343
unit_owner varchar2(128), -- library unit owner name

source/core/ut_savepoint_seq.sql

Lines changed: 0 additions & 15 deletions
This file was deleted.

source/core/ut_utils.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ create or replace package body ut_utils is
5959

6060
function gen_savepoint_name return varchar2 is
6161
begin
62-
return 's'||trim(to_char(ut_savepoint_seq.nextval,'0000000000000000000000000000'));
62+
return 's'||to_char(systimestamp,'yyyymmddhh24missff9');
6363
end;
6464

6565
procedure debug_log(a_message varchar2) is

source/install.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ end;
5959
@@install_component.sql 'core/types/ut_reporters_info.tps'
6060
@@install_component.sql 'core/ut_utils.pks'
6161
@@install_component.sql 'core/ut_metadata.pks'
62-
@@install_component.sql 'core/ut_savepoint_seq.sql'
6362
@@install_component.sql 'core/ut_utils.pkb'
6463
@@install_component.sql 'core/ut_metadata.pkb'
6564
@@install_component.sql 'reporters/ut_ansiconsole_helper.pks'

source/uninstall_objects.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ end;
243243

244244
drop package ut_utils;
245245

246-
drop sequence ut_savepoint_seq;
247-
248246
drop type ut_documentation_reporter force;
249247

250248
drop type ut_debug_reporter force;

0 commit comments

Comments
 (0)