File Removed
[csql.git] / test / tools / csql / test055.ksh
blob63e91a64a53e907c64e6c062556eebe30429c9d4
1 #!/bin/sh
2 #Test case
3 #create table t1(f1 int not null,f2 int,f3 int);
4 #a) create unique index on the first field.
5 #b) create hash unique 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}/tree10.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;