File Removed
[csql.git] / test / tools / csql / test052.ksh
blobed49d1dfe4d3bbe2077a2426525eeb7764c6868f
1 #!/bin/sh
2 # Test Case
3 # Create table (f1 int, f2 int, f3 int);
4 # Insert 5 tuples (1, 1, 1), (2, 2, 2), (1, 2, 3)
5 # create index idx1 on t1(f1) tree unique;
6 # Should 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 -u root -p manager -s ${REL_PATH}/uniquetreeindontuples.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;