The expected file was wrong earlier
[csql.git] / test / tools / csql / test060.ksh
blob575c2be629650466848f9032a1f107be083082d4
1 #!/bin/sh
2 #Test case
3 #create table t1(f1 int not null,f2 int,f3 int,primary key(f1));
4 # create index idx1 on t1(f1) unique;
5 #It should be failed saying "Index on this field already exists".
7 QUITFILE=${PWD}/tools/csql/quit.sql
8 REL_PATH=.
9 if [ -s "$QUITFILE" ]
10 then
11 REL_PATH=`pwd`/tools/csql
14 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree15.sql
15 if [ $? -ne 0 ]
16 then
17 exit 1;
19 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
20 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
21 if [ $? -ne 0 ]
22 then
23 exit 1;