3 TESTFILE
=${PWD}/jdbc
/Gateway
/ConnTest01.java
7 REL_PATH
=`pwd`/jdbc
/Gateway
9 export CLASSPATH
=$CLASSPATH:${REL_PATH}
12 cp $CSQL_CONFIG_FILE /tmp
/csql.conf
13 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
14 echo "CACHE_TABLE=true" >>$CSQL_CONFIG_FILE
15 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
16 DS
="$DSN $DBUSER $PASSWORD"
17 rm -f /tmp
/csql
/csqlds.conf
18 touch /tmp
/csql
/csqlds.conf
19 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
24 if [ "$DSN" = "oracle" ]
26 echo "CREATE TABLE t1 (f1 integer, f2 smallint, f4 number(15), f5 float, f6 char(10), f7 date,f8 date, f9 timestamp);" >${REL_PATH}/t1create.sql
28 echo "CREATE TABLE t1 (f1 integer, f2 smallint, f4 bigint, f5 float, f6 char(10), f7 date, f8 time, f9 timestamp);" >${REL_PATH}/t1create.sql
30 isql
$DS < ${REL_PATH}/t1create.sql
>/dev
/null
2>&1
33 rm -f ${REL_PATH}/t1create.sql
34 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
35 rm -f ${REL_PATH}/dp.sql
38 echo "drop table t1;">${REL_PATH}/dp.sql
39 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
>/dev
/null
2>&1
42 rm -f ${REL_PATH}/t1create.sql
43 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
44 rm -f ${REL_PATH}/dp.sql
50 rm -f ${REL_PATH}/t1create.sql
51 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
52 rm -f ${REL_PATH}/dp.sql
56 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-u >/dev
/null
2>&1
59 rm -f ${REL_PATH}/t1create.sql
60 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
61 rm -f ${REL_PATH}/dp.sql
64 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
65 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/dp.sql
>/dev
/null
2>&1
66 rm -f ${REL_PATH}/dp.sql
67 rm -f ${REL_PATH}/t1create.sql