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