*** empty log message ***
[csql.git] / test / jdbc / network / Gateway / test043.ksh
blob6660b6fc2d72fe2b4804ba86f255bf6757ef07ea
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/network/Gateway/GwTest1.java
7 REL_PATH=.
8 if [ -s "$TESTFILE" ]
9 then
10 REL_PATH=`pwd`/jdbc/network/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;