*** empty log message ***
[csql.git] / test / tools / csql / test072.ksh
blob1b015b083d70f9257eda2e6e6101993b0a446ae6
1 #!/bin/ksh
2 #Test case
3 #Autocommit mode off
4 #create table t1(f1 int,f2 int);
5 #insert 4 records into table t1 and commit. Then insert another records into t1 and Rollback, disconnect csql and reconnect csql again. Check last 2 records are not there.
7 QUITFILE=${PWD}/tools/csql/quit.sql
8 REL_PATH=.
9 if [ -s "$QUITFILE" ]
10 then
11 REL_PATH=`pwd`/tools/csql
14 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/autocommit8.sql
15 if [ $? -ne 0 ]
16 then
17 exit 1;
19 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/quit.sql
20 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/selectstar.sql
21 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/drop.sql
22 if [ $? -ne 0 ]
23 then
24 exit 1;