3 CSQL_CONF
=${PWD}/sqlgw
/Select
/csql.conf
7 REL_PATH
=${PWD}/sqlgw
/Select
10 cp $REL_PATH/csql.conf
/tmp
/csql.conf
12 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
13 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
14 DS
="$DSN $DBUSER $PASSWORD"
16 rm -f /tmp
/csql
/csqlds.conf
17 touch /tmp
/csql
/csqlds.conf
18 rm -f /tmp
/csql
/csqltable.conf
19 touch /tmp
/csql
/csqltable.conf
22 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
30 echo "CREATE TABLE t1(f1 INT,f2 CHAR(20));" > create.sql
31 elif [ $DSN = "oracle" ]
33 echo "CREATE TABLE t1(f1 INT,f2 CHAR(20));" > create.sql
36 echo "CREATE TABLE t1(f1 INT,f2 CHAR(20))" > create.sql
38 echo "CREATE TABLE t1(f1 INT,f2 CHAR(20));" > create.sql
41 isql
$DS < create.sql
>/dev
/null
2>&1
43 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
47 echo "drop table t1;" > drop.sql
49 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
52 isql
$DS < drop.sql
>/dev
/null
2>&1
54 ipcrm
-M 4567 -M 5678 -M 1950
55 rm -f create.sql drop.sql
59 if [ $VALGRIND = "true" ]
61 valgrind
--tool=memcheck
--leak-check=full
${REL_PATH}/selecttest3
2> $0.valgr
63 ${REL_PATH}/selecttest3
66 isql
$DS < drop.sql
>/dev
/null
2>&1
67 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-u
69 ipcrm
-M 4567 -M 5678 -M 1950
70 rm -f create.sql drop.sql
75 isql
$DS < drop.sql
>/dev
/null
2>&1
76 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-u
78 ipcrm
-M 4567 -M 5678 -M 1950
80 rm -f create.sql drop.sql