📄 test003.ksh
字号:
#!/bin/sh# Test Case# create table t1 (f1, f2) , index t1idx1 on t1(f1), index t1idx2 on t1(f2)# create table t2 (f1, f2) , index t2idx1 on t2(f1)# Check -T option with table having 1 index # Check -T option with table having 2 index # Check -I option on index t1idx2# drop tables t1 and t2#Run this test only under csql/test or on this directory.#Otherwise, it may failEXECUTABLE=${PWD}/tools/catalog/createREL_PATH=.if [ -s "$EXECUTABLE" ]then REL_PATH=${PWD}/tools/catalogfi${REL_PATH}/createif [ $? -ne 0 ]then exit 1;fiecho "Tables and Indexes are created"echo "Case 1: -T option for t1: with two index"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -T t1if [ $? -ne 0 ]then exit 1;fiecho "Case 2: -T option for t2: with one index"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -T t2if [ $? -ne 0 ]then exit 2;fiecho "Case 3: -I option for idx2 of t1"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -I t1idx2if [ $? -ne 0 ]then exit 3;fi${REL_PATH}/dropif [ $? -ne 0 ]then exit 100;fiecho "Tables and Indexes are dropped"exit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -