📄 test002.ksh
字号:
#!/bin/sh# TestCase:# check used and free transacation slots in transaction table# create table# for i = 1 to 120# insert 1 tuple in 1 transaction and abort# end for# check used and free transacation slots in transaction table#Run this test only under csql/test or on this directory.#Otherwise, it may failEXECUTABLE=${PWD}/system/trans/createREL_PATH=.if [ -s "$EXECUTABLE" ]then REL_PATH=${PWD}/system/transfi${REL_PATH}/createif [ $? -ne 0 ]then echo "create table failed" exit 100;fiecho "Case 1: -d option with no transactions"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -D transif [ $? -ne 0 ]then exit 1;ficount=120while [ ${count} -gt 0 ]do count=`expr ${count} - 1` ${REL_PATH}/insert1andAbort >/tmp/tstlog if [ $? -ne 1 ] then echo "insert failed" exit 100; fidoneecho "Case 2: -d option after 120 aborts"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -D transif [ $? -ne 0 ]then exit 1;fi${REL_PATH}/dropif [ $? -ne 0 ]then echo "drop table failed" exit 100;fiexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -