File Removed
[csql.git] / test / jdbc / Gateway / test056.ksh
blobb4f86b84b73482a72e1c1d751033c3f4dfc7e732
1 #!/bin/sh
2 # Connect with connectstring "jdbc:gateway"
3 # delete tuple with WHERE clause having params (DELETE FROM T1 WHERE f1=?AND f9=?) using gateway,when csqlserver is not runnig
5 # GwTest16.java
6 TESTFILE=${PWD}/jdbc/Gateway/ConnTest01.java
7 REL_PATH=.
8 if [ -s "$TESTFILE" ]
9 then
10 REL_PATH=`pwd`/jdbc/Gateway
12 export CLASSPATH=$CLASSPATH:${REL_PATH}
13 export CSQL_CONFIG_FILE=$REL_PATH/csql.conf
14 echo "CREATE TABLE T1 (f1 integer, f2 smallint, f3 tinyint, f4 bigint, f5 float, f6 char(10), f7 date, f8 time, f9 timestamp);" >${REL_PATH}/t1create.sql
15 isql $DSN < ${REL_PATH}/t1create.sql >/dev/null 2>&1
16 if [ $? -ne 0 ]
17 then
18 rm -f ${REL_PATH}/t1create.sql
19 exit 1;
21 java GwTest16
22 if [ $? -ne 0 ]
23 then
24 exit 2;
27 echo "drop table T1;">${REL_PATH}/dp.sql
28 isql $DSN < ${REL_PATH}/dp.sql >/dev/null 2>&1
29 rm -f ${REL_PATH}/dp.sql
30 rm -f ${REL_PATH}/t1create.sql
31 exit 0;