2 # Testing rollback after truncating table in autocommit off mode.
3 # Create table t1 with all datatypes.
5 # insert 2 - 3 records into it.
6 # Execute truncate table t1;
7 # Rollback the transaction.
8 # There should not be any record in the table. That means after truncate rollback has no effect.
10 QUITFILE
=${PWD}/sql
/DDL
/drop.sql
14 REL_PATH
=`pwd`/sql
/DDL
17 echo "drop table t1;" >${REL_PATH}/dropt1.sql
19 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dropt1.sql
>/dev
/null
2>&1
21 if [ "$VALGRIND" = "true" ]
23 valgrind
--tool=memcheck
--leak-check=full
$CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/aucommitoff_truncate_rollback.sql
25 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/aucommitoff_truncate_rollback.sql
28 rm -f ${REL_PATH}/dropt1.sql
33 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/dropt1.sql
34 rm -f ${REL_PATH}/dropt1.sql