2 # Donot Start CSQL Server
3 # Open the connection through jdbc:gateway and then call isClosed(). It should return false.
4 # Close the connection jdbc:gateway and then call isClosed(). It should return true
8 TESTFILE
=${PWD}/jdbc
/Gateway
/GwTest1.java
12 REL_PATH
=`pwd`/jdbc
/Gateway
14 export CLASSPATH
=$CLASSPATH:${REL_PATH}
16 cp $CSQL_CONFIG_FILE /tmp
/csql.conf
17 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
18 #export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
19 echo "CACHE_TABLE=true" >>$CSQL_CONFIG_FILE
20 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
21 DS
="$DSN $DBUSER $PASSWORD"
22 rm -f /tmp
/csql
/csqlds.conf
23 touch /tmp
/csql
/csqlds.conf
24 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a