windows changes
[csql.git] / test / tools / csql / test048.ksh
blob620b4ab2c8b44720b31a15b8332653744e652aad
1 #!/bin/ksh
2 # TEST CASE
3 # 1. create table t1 (f1 int not null, f2 int);
4 # 2. create index idx on t1 (f1) tree
5 #checking Select statement with condition on 0 or less than 0 on index field
7 QUITFILE=${PWD}/tools/csql/quit.sql
8 REL_PATH=.
9 if [ -s "$QUITFILE" ]
10 then
11 REL_PATH=`pwd`/tools/csql
14 if [ "$VALGRIND" = "true" ]
15 then
16 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree5.sql 2> $0.valgr
17 else
18 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree5.sql
19 if [ $? -ne 0 ]
20 then
21 exit 1;
25 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
26 if [ $? -ne 0 ]
27 then
28 exit 2;
31 exit 0;