*** empty log message ***
[csql.git] / test / tools / csql / testnw024.ksh
blob1eca5da526b3e3af8f9635ff9c1cebeb1f6d971f
1 #!/bin/ksh
2 # Test Case
3 # 35. Create table (f1 int, f2 bigint, f3 smallint,f4 tinyint);
4 # Insert 5 tuples
5 # Then create index in different combination
6 # All Should be fail with unique key violation error.
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 -o 4 -u root -p manager -s ${REL_PATH}/uniqueindex.sql
16 if [ $? -ne 0 ]
17 then
18 $CSQL_INSTALL_ROOT/bin/csql -o 4 -u root -p manager -s ${REL_PATH}/drop.sql
19 exit 1;
21 $CSQL_INSTALL_ROOT/bin/csqldump -T t1
22 $CSQL_INSTALL_ROOT/bin/csql -o 4 -u root -p manager -s ${REL_PATH}/drop.sql
23 if [ $? -ne 0 ]
24 then
25 exit 2;
27 exit 0;