Skip to content

Commit 9dabb64

Browse files
committed
Limit sequences to sb8
1 parent c106544 commit 9dabb64

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

oltp/mtit_create.sql

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ rem Name
1010
rem mtit_create.sql - Create Max Throughput Insert Tranaction
1111
rem
1212
rem History
13+
rem bengsig 13-jun-2023 - set sequence max to 2^63 to fit in sb8
1314
rem bengsig 10-may-2023 - Creation
1415

1516
create table aw_mtit_noix
@@ -59,13 +60,13 @@ create table aw_mtit_cdr
5960
)
6061
/
6162

62-
create sequence aw_mit_seq_small cache 20
63+
create sequence aw_mit_seq_small cache 20 maxvalue 9223372036854775800
6364
/
6465

65-
create sequence aw_mit_seq_large cache 20000
66+
create sequence aw_mit_seq_large cache 20000 maxvalue 9223372036854775800
6667
/
6768

68-
create sequence aw_mit_seq_scale cache 20000 scale
69+
create sequence aw_mit_seq_scale cache 20000 maxvalue 9223372036854775800 scale
6970
/
7071

7172
exit

oltp/mtit_declarations.rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ procedure mtit_ins_rows() nostatistics
5656
string(2000) payload;
5757
string(2000) ovid2load;
5858
ovid2load := ovidstring2(mtit_max_payload);
59-
string seq; # must be string for large values
59+
integer seq; # fits in sb8 - see mtit_create.sql
6060

6161
sql mtit_get_seq
6262
define sql;

0 commit comments

Comments
 (0)