File Removed
[csql.git] / test / jdbc / Gateway / test037.ksh
blobabe9dc32a04f4b25c15f02c5de09536a26550215
1 #!/bin/sh
2 #JDBC GATEWAY CACHE
3 TESTFILE=${PWD}/jdbc/Gateway/ConnTest01.java
4 REL_PATH=.
5 if [ -s "$TESTFILE" ]
6 then
7 REL_PATH=`pwd`/jdbc/Gateway
8 fi
9 export CLASSPATH=$CLASSPATH:${REL_PATH}
11 echo "CREATE TABLE T1 (f1 integer, f2 smallint, f3 tinyint, f4 bigint, f5 float, f6 char(10), f7 date, f8 time, f9 timestamp);" >${REL_PATH}/t1create.sql
12 isql $DSN < ${REL_PATH}/t1create.sql >/dev/null 2>&1
13 if [ $? -ne 0 ]
14 then
15 rm -f ${REL_PATH}/t1create.sql
16 exit 1;
18 $CSQL_INSTALL_ROOT/bin/cachetable -t T1 >/dev/null 2>&1
19 if [ $? -ne 0 ]
20 then
21 rm -f ${REL_PATH}/t1create.sql
22 exit 2;
24 java GwStmt7
25 if [ $? -ne 0 ]
26 then
27 exit 3;
30 $CSQL_INSTALL_ROOT/bin/cachetable -t T1 -u >/dev/null 2>&1
31 if [ $? -ne 0 ]
32 then
33 rm -f ${REL_PATH}/t1create.sql
34 exit 4;
36 echo "drop table T1;">${REL_PATH}/dp.sql
37 isql $DSN < ${REL_PATH}/dp.sql >/dev/null 2>&1
38 rm -f ${REL_PATH}/dp.sql
39 rm -f ${REL_PATH}/t1create.sql
41 exit 0;