2 # Create table with 4 fields all are varchar.
3 # create composite hash index on 3 fields.
4 # Apply explain plan using select with multiple predicates(Hash lookup).
5 # Apply explain plan using select with multiple predicates(range lookup).
7 QUITFILE
=${PWD}/sql
/Optimizer
/drop.sql
11 REL_PATH
=`pwd`/sql
/Optimizer
14 echo "drop table t1;" >${REL_PATH}/dropt1.sql
16 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dropt1.sql
>/dev
/null
2>&1
18 if [ "$VALGRIND" = "true" ]
20 valgrind
--tool=memcheck
--leak-check=full
$CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/varchar_composite.sql
22 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/varchar_composite.sql
25 rm -f ${REL_PATH}/dropt1.sql
30 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/dropt1.sql
31 rm -f ${REL_PATH}/dropt1.sql