2 # drop index statement should remove all the cached statements which are not in use
3 # insert prepare, execute
5 # execute already prepared stmt, free
6 # Both the values inserted should be present through index lookup
7 CREATEFILE
=${PWD}/sql
/StmtCache
/csql.conf
9 if [ -s "$CREATEFILE" ]
11 REL_PATH
=`pwd`/sql
/StmtCache
14 echo "drop table t1;" >${REL_PATH}/dropt1.sql
16 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dropt1.sql
>/dev
/null
2>&1
17 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/t1idx.sql
>/dev
/null
2>&1
20 if [ "$VALGRIND" = "true" ]
22 valgrind
--tool=memcheck
--leak-check=full
$REL_PATH/stmtTest11
27 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dropt1.sql
28 rm -f ${REL_PATH}/dropt1.sql
32 echo "select * from t1 where f2=100;" >${REL_PATH}/sel.sql
33 echo "select * from t1 where f2=200;" >>${REL_PATH}/sel.sql
34 $CSQL_INSTALL_ROOT/bin
/csqldump
35 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/sel.sql
36 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dropt1.sql
>/dev
/null
2>&1
37 rm -f ${REL_PATH}/dropt1.sql