lock manager and chunk allocation mutex modificationsw
[csql.git] / test / jdbc / Gateway / test043.ksh
blobccc3e6c88de6f33ec2b86a603c521cc56bd79e9a
1 #!/bin/ksh
2 #Donot Start Server .Connect only with connectstring "jdbc:"gateway and no username and password. It should fail
4 # GwTest3.java
6 TESTFILE=${PWD}/jdbc/Gateway/GwTest1.java
7 REL_PATH=.
8 if [ -s "$TESTFILE" ]
9 then
10 REL_PATH=`pwd`/jdbc/Gateway
12 export CLASSPATH=$CLASSPATH:${REL_PATH}
13 rm -f /tmp/csql.conf
14 cp $CSQL_CONFIG_FILE /tmp/csql.conf
15 export CSQL_CONFIG_FILE=/tmp/csql.conf
16 #export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
17 echo "CACHE_TABLE=true" >>$CSQL_CONFIG_FILE
18 echo DSN=$DSN >>$CSQL_CONFIG_FILE
19 DS="$DSN $DBUSER $PASSWORD"
20 rm -f /tmp/csql/csqlds.conf
21 touch /tmp/csql/csqlds.conf
22 $CSQL_INSTALL_ROOT/bin/csqlds -U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
23 if [ $? -ne 0 ]
24 then
25 exit 1;
28 java GwTest3
29 if [ $? -ne 0 ]
30 then
31 exit 1;
35 exit 0;