3 #create table t2 (f1,f2,f3) ,with primary key(f1) and index on f3 .check with -D chunk
4 #insert 20 tuples and check with -D chunk
5 #delete 10 tuples and check with -D chunk
6 #drop t2 check with -D chunk
8 CSQL_CONF
=${PWD}/tools
/catalog
/csql.conf
9 input
=${PWD}/tools
/catalog
/create.sql
11 if [ -s "$input" -a -s "$CSQL_CONF" ]
13 REL_PATH
=${PWD}/tools
/catalog
15 export CSQL_CONFIG_FILE
=$REL_PATH/csql.conf
17 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
21 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/create1.sql
28 echo "Case 1: With -D chunk option after table creation:"
29 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
34 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/insert.sql
40 echo "Case 2: With -D chunk option after insert 20 tuples:"
41 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
46 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/delete.sql
52 echo "10 tuples deleted"
54 echo "Case 3: With -D chunk option after deleting 10 tuples :"
55 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
60 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/dropIndex.sql
67 echo "Case 4: With -D chunk option after Index droped :"
68 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk
74 $CSQL_INSTALL_ROOT/bin
/csql
-u root
-p manager
-s $REL_PATH/dropt2.sql
80 echo "t2 table droped with index"
82 echo "Case 5: With -D chunk option after drop t2 :"
83 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-D chunk