*** empty log message ***
[csql.git] / test / sql / Distinct / test002.ksh
blob2991beb29e67e83b6d791683f491836e49663dd9
1 #!/bin/ksh
2 # Testing DISTINCT Clause on all datatypes.
4 CREATEFILE=${PWD}/sql/Distinct/dropt1.sql
5 REL_PATH=.
6 if [ -s "$CREATEFILE" ]
7 then
8 REL_PATH=`pwd`/sql/Distinct
9 fi
11 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/alldatatype.sql
12 if [ $? -ne 0 ]
13 then
14 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/dropt1.sql
15 exit 1;
18 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/distinct_alltypes.sql
19 if [ $? -ne 0 ]
20 then
21 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/dropt1.sql
22 exit 2;
25 $CSQL_INSTALL_ROOT/bin/csql -s ${REL_PATH}/dropt1.sql
26 if [ $? -ne 0 ]
27 then
28 exit 3;
31 exit 0;