adding test scripts
[csql.git] / test / jdbc / Statement / test021.ksh
blob346472484b9c041f729c9ee2cd425537457abb03
1 #!/bin/ksh
2 # Get Result set then close result set and then fetch it should fail
3 # TestScript12.java
5 TESTFILE=${PWD}/jdbc/Statement/StmtTest1.java
6 REL_PATH=.
7 if [ -s "$TESTFILE" ]
8 then
9 REL_PATH=`pwd`/jdbc/Statement
11 export CLASSPATH=$CLASSPATH:${REL_PATH}
12 java TestScript12
13 if [ $? -ne 0 ]
14 then
15 echo "Drop table T1;"| $CSQL_INSTALL_ROOT/bin/csql
16 exit 1;
18 echo "Drop table T1;"| $CSQL_INSTALL_ROOT/bin/csql
19 exit 0;