*** empty log message ***
[csql.git] / test / tools / csql / test069.ksh
blob95fd3395da2e968da3c8ed5b25a283a2bda6d963
1 #!/bin/ksh
2 #Test case
3 #utocommit mode to true and commit
4 #set the autocommit mode to true and then call insert and commit from csql. then check that the inserted record is present and the commit should not give error message.
6 QUITFILE=${PWD}/tools/csql/quit.sql
7 REL_PATH=.
8 if [ -s "$QUITFILE" ]
9 then
10 REL_PATH=`pwd`/tools/csql
13 if [ "$VALGRIND" = "true" ]
14 then
15 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree24.sql 2> $0.valgr
16 else
17 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/tree24.sql
18 if [ $? -ne 0 ]
19 then
20 exit 1;
24 if [ "$VALGRIND" = "true" ]
25 then
26 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/selectstar.sql 2>> $0.valgr
27 else
28 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/selectstar.sql
31 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
32 if [ $? -ne 0 ]
33 then
34 exit 2;
37 exit 0;