adding test scripts
[csql.git] / test / tools / csql / csql10.sql
blob48a6aeeb377a7dee4832e810e5b8cccbfd1f3dad
1 echo Description: SET TRANSACTION type test
3 create table t1 (f1 int, f2 char(10), f3 int, primary key (f1));
4 echo check default transaction type
5 insert into t1 values (10, '20', 10);
6 insert into t1 values (11, '21', 11);
8 echo check read only type
9 set transaction read only;
10 insert into t1 values (11, '21', 11);
11 update t1 set f2='a' where f1 = 10;
12 delete from t1 where f1 = 11;
13 select * from t1;
15 echo check read write type
16 insert into t1 values (50, '50', 50);
17 update t1 set f2='a' where f1 = 10;
18 delete from t1 where f1 = 11;
19 select * from t1;
21 echo check read only type
22 set transaction read only;
23 insert into t1 values (11, '21', 11);
24 update t1 set f2='a' where f1 = 10;
25 delete from t1 where f1 = 11;
26 select * from t1;