File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ create or replace package body ut_utils is
5252
5353 function gen_savepoint_name return varchar2 is
5454 begin
55- return 'ut_ '||to_char(systimestamp,'yymmddhh24mmssff') ;
55+ return '" '|| utl_raw.cast_to_varchar2(utl_encode.base64_encode(sys_guid()))||'"' ;
5656 end;
5757
5858 /*
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ create or replace package ut_utils authid definer is
119119
120120 function to_test_result(a_test boolean) return integer;
121121
122+ /**
123+ * Generates a unique name for a savepoint
124+ * Uses sys_guid, as timestamp gives only miliseconds on Windows and is not unique
125+ * Issue: #506 for details on the implementation approach
126+ */
122127 function gen_savepoint_name return varchar2;
123128
124129 procedure debug_log(a_message varchar2);
You can’t perform that action at this time.
0 commit comments