3 # create table t1 (f1, f2) , index t1idx1 on t1(f1), index t1idx2 on t1(f2)
4 # create table t2 (f1, f2) , index t2idx1 on t2(f1)
5 # Check -T option with table having 1 index
6 # Check -T option with table having 2 index
7 # Check -I option on index t1idx2
8 # drop tables t1 and t2
10 #Run this test only under csql/test or on this directory.
11 #Otherwise, it may fail
12 EXECUTABLE
=${PWD}/tools
/catalog
/create
14 if [ -s "$EXECUTABLE" ]
16 REL_PATH
=${PWD}/tools
/catalog
24 echo "Tables and Indexes are created"
25 echo "Case 1: -T option for t1: with two index"
26 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-T t1
32 echo "Case 2: -T option for t2: with one index"
33 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-T t2
39 echo "Case 3: -I option for idx2 of t1"
40 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-I t1idx2
51 echo "Tables and Indexes are dropped"