2 # Connect with connectstring "jdbc:gateway"
3 # Open a connection and then close it. After that execute INSERT/QUERY/UPDATE statement. It should fail,when csqlserver is not runnig
5 TESTFILE
=${PWD}/jdbc
/Gateway
/ConnTest01.java
9 REL_PATH
=`pwd`/jdbc
/Gateway
11 export CLASSPATH
=$CLASSPATH:${REL_PATH}
13 cp $CSQL_CONFIG_FILE /tmp
/csql.conf
14 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
15 #export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
16 echo "create table t1 (f1 int,f2 char(10),primary key(f1));" >${REL_PATH}/t1create.sql
17 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
18 DS
="$DSN $DBUSER $PASSWORD"
19 rm -f /tmp
/csql
/csqlds.conf
20 touch /tmp
/csql
/csqlds.conf
21 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
27 isql
$DS < ${REL_PATH}/t1create.sql
>/dev
/null
2>&1
30 rm -f ${REL_PATH}/t1create.sql
39 echo "drop table t1;">${REL_PATH}/dp.sql
40 isql
$DS < ${REL_PATH}/dp.sql
>/dev
/null
2>&1
41 rm -f ${REL_PATH}/dp.sql
42 rm -f ${REL_PATH}/t1create.sql