Skip to content

Commit db54e9b

Browse files
committed
Update tests for blocksql->snapshot migration
Signed-off-by: mdouglas47 <[email protected]>
1 parent 51dec8f commit db54e9b

File tree

14 files changed

+18
-1
lines changed

14 files changed

+18
-1
lines changed

tests/multichunk.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ bash -n "$0" | exit 1
44
cdb2="cdb2sql --tabs -s ${CDB2_OPTIONS} $1 default "
55

66
function multi_chunk {
7+
echo "set transaction blocksql"
78
echo "set transaction chunk $chunk"
89
echo 'begin'
910
from=1

tests/queuedb_locks.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cdb2sql --host $rep ${CDB2_OPTIONS} $dbname 'create table t(a int)'
1212
cdb2sql --host $rep ${CDB2_OPTIONS} $dbname 'create default lua consumer test on (table t for insert)'
1313

1414
cdb2sql --host $rep ${CDB2_OPTIONS} $dbname - <<'EOF'
15+
set transaction blocksql
1516
set transaction chunk 100
1617
begin
1718
insert into t select value from generate_series(1, 1000000)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sql_tranlevel_default blocksock

tests/sc_force.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ master=`cdb2sql --tabs ${CDB2_OPTIONS} $dbnm --host $fixednode 'exec procedure s
1111
cat << EOF | cdb2sql ${CDB2_OPTIONS} -s --tabs $dbnm --host $fixednode - >actual 2>&1
1212
drop table if exists t
1313
create table t {`cat t1.csc2`}\$\$
14+
set transaction blocksql
1415
set transaction chunk 10000
1516
BEGIN
1617
insert into t select * from generate_series(1,1000000)

tests/sc_multitable.test/run.log.alpha

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
]
1616
}
1717
]
18+
[set transaction blocksql] rc 0
1819
[set transaction chunk 10000] rc 0
1920
[begin] rc 0
2021
[insert into testview1 select * from generate_series(1,100000)] rc 0
@@ -94,6 +95,7 @@
9495
]
9596
(rows inserted=10)
9697
(rows inserted=10)
98+
[set transaction blocksql] rc 0
9799
[set transaction chunk 1000] rc 0
98100
[begin] rc 0
99101
[insert into '$14_CC37A197' (a) select * from generate_series(1,1000000)] rc 0

tests/sc_multitable.test/runit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ if (( $? != 0 )) ; then
3737
fi
3838

3939
cdb2sql ${CDB2_OPTIONS} $dbname default >> $OUT <<EOF
40+
set transaction blocksql
4041
set transaction chunk 10000
4142
begin
4243
insert into ${VIEW1} select * from generate_series(1,100000)
@@ -97,6 +98,7 @@ if (( $? != 0 )) ; then
9798
exit 1
9899
fi
99100
cdb2sql ${CDB2_OPTIONS} $dbname default >> $OUT <<EOF
101+
set transaction blocksql
100102
set transaction chunk 1000
101103
begin
102104
insert into '\$14_CC37A197' (a) select * from generate_series(1,1000000)

tests/sc_versmismatch.test/runit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ function test2
192192

193193
if [ $recom -ne 0 ] ; then
194194
echo "set transaction read committed" >&${COPROC[1]}
195+
else
196+
echo "set transaction blocksql" >&${COPROC[1]}
195197
fi
196198
echo "begin" >&${COPROC[1]}
197199
echo "update t1 set c=c+100000 where a = 300000" >&${COPROC[1]}

tests/seekscan.test/runit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ create table t(a int, b int, c int); \$\$
1111
create index t_ix on t(a, b);
1212
truncate t;
1313
14+
set transaction blocksql
1415
set transaction chunk 100;
1516
begin;
1617
insert into t select a.value as a, b.value as b, 0 from generate_series(1, 10000) as a cross join generate_series(1, 10) as b;

tests/socksql.test/lrl.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
table t1 t1.csc2
2+
sql_tranlevel_default blocksock

tests/socksql_master_swings.test/lrl.options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dump_blkseq on
1414
extended_sql_debug_trace on
1515
decoupled_logputs off
1616
nowatch
17+
sql_tranlevel_default blocksock

0 commit comments

Comments
 (0)