File Removed
[csql.git] / test / tools / csql / test062.ksh
blob5b4424aa2dce67192a2f94d95b720eca22759b08
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 first field
5 #b) create tree primary index on same firld.
6 #It should be failed Saying "Index on this field already exists".
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}/tree17.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;