3 # check pages used(normal and merged) and chunks used for user database
5 # create table t1 with two fields and index on first field
6 # create index idx1 on t1 (f1)
9 # check pages used(normal and merged) and chunks used for user database
11 #Run this test only under csql/test or on this directory.
12 #Otherwise, it may fail
13 EXECUTABLE
=${PWD}/system
/Allocator
/create
15 if [ -s "$EXECUTABLE" ]
17 REL_PATH
=${PWD}/system
/Allocator
20 echo "Case 1: -d option with no table"
21 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-d
27 echo "Tables and Indexes are created"
29 echo "Case 2: -d option with 1 table"
31 while [ ${count} -gt 0 ]
33 count
=`expr ${count} - 1`
37 echo "create table failed"
43 echo "drop table failed"
47 $CSQL_INSTALL_ROOT/bin
/catalog
-u root
-p manager
-d