File Removed
[csql.git] / test / tools / csql / test063.ksh
blob990daea24558a65c48cf21cae1c3bcd682420889
1 #!/bin/sh
2 #Test case
3 #create table t1(f1 int not null,f2 int,f3 int);
4 #a) create tree unique index on the first field.
5 #b) drop the index
6 #c) create tree primary index on the same field.
7 #It should be passed
9 QUITFILE=${PWD}/tools/csql/quit.sql
10 REL_PATH=.
11 if [ -s "$QUITFILE" ]
12 then
13 REL_PATH=`pwd`/tools/csql
16 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree18.sql
17 if [ $? -ne 0 ]
18 then
19 exit 1;
21 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
22 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
23 if [ $? -ne 0 ]
24 then
25 exit 1;