The expected file was wrong earlier
[csql.git] / test / tools / csql / test054.ksh
blobe381bf3f5c2010c6da7965977573944c6b5a1b47
1 #!/bin/sh
2 #Test case
3 #create table t1(f1 int not null,f2 int,f3 int);
4 #a) create primary index on the first field.
5 #b) create hash primary index on the same field.
6 #It should fail 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}/tree9.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;