3 TESTFILE
=${PWD}/jdbc
/Gateway
/ConnTest01.java
7 REL_PATH
=`pwd`/jdbc
/Gateway
9 export CLASSPATH
=$CLASSPATH:${REL_PATH}
11 cp $CSQL_CONFIG_FILE /tmp
/csql.conf
12 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
13 echo "CACHE_TABLE=true" >>$CSQL_CONFIG_FILE
14 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
15 DS
="$DSN $DBUSER $PASSWORD"
16 rm -f /tmp
/csql
/csqlds.conf
17 touch /tmp
/csql
/csqlds.conf
18 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
24 echo "create table t1 (f1 int NOT NULL,f2 char(10),primary key(f1));" >${REL_PATH}/t1create.sql
25 isql
$DS < ${REL_PATH}/t1create.sql
>/dev
/null
2>&1
28 rm -f ${REL_PATH}/t1create.sql
31 echo "drop table t1;">${REL_PATH}/dp.sql
32 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
>/dev
/null
2>&1
35 rm -f ${REL_PATH}/t1create.sql
36 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
37 rm -f ${REL_PATH}/dp.sql
43 rm -f ${REL_PATH}/t1create.sql
44 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
45 rm -f ${REL_PATH}/dp.sql
49 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-u >/dev
/null
2>&1
52 rm -f ${REL_PATH}/t1create.sql
53 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
54 rm -f ${REL_PATH}/dp.sql
57 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
58 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dp.sql
>/dev
/null
2>&1
59 rm -f ${REL_PATH}/dp.sql
60 rm -f ${REL_PATH}/t1create.sql