3 # 12.csqlserver not running
5 # oncached table in mysql(should work), cached table (work), csql table (fail)
7 #Run this test only under csql/test or on this directory.
8 #Otherwise, it may fail
9 input
=${PWD}/cache
/Gateway
/mysqlinputtest1.sql
13 REL_PATH
=${PWD}/cache
/Gateway
17 cp $REL_PATH/csql.conf
/tmp
/csql.conf
18 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
20 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
21 DS
="$DSN $DBUSER $PASSWORD"
22 rm -f /tmp
/csql
/csqlds.conf
23 touch /tmp
/csql
/csqlds.conf
24 $CSQL_INSTALL_ROOT/bin
/csqlds
-U $DBUSER -P $PASSWORD -D $DSN -N $TDB -a
30 if [ $DSN = "oracle" ]
32 isql
$DS < $REL_PATH/orainputt1.oracle
>/dev
/null
2>&1
33 elif [ $DSN = "sybase" ]
35 isql
$DS < $REL_PATH/sybaseinputtest1.sql
>/dev
/null
2>&1
38 isql
$DS < $REL_PATH/db2inputtest1.sql
>/dev
/null
2>&1
40 isql
$DS < $REL_PATH/mysqlinputtest1.sql
>/dev
/null
2>&1
44 echo "DSN is not set for target db"
48 if [ $DSN = "oracle" ]
50 isql
$DS < $REL_PATH/orainputt2.oracle
>/dev
/null
2>&1
51 elif [ $DSN = "sybase" ]
53 isql
$DS < $REL_PATH/sybaseinputtest12.sql
> /dev
/null
2>&1
56 isql
$DS < $REL_PATH/db2inputtest12.sql
> /dev
/null
2>&1
58 isql
$DS < $REL_PATH/mysqlinputtest12.sql
>/dev
/null
2>&1
63 cp /tmp
/csql.conf
$CSQL_CONFIG_FILE
66 # edit /tmp/csql/csqltable.conf
67 rm -f /tmp
/csql
/csqltable.conf
68 touch /tmp
/csql
/csqltable.conf
70 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
73 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-d $DSN
80 if [ $DSN = "oracle" ]
82 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/orainputt3.oracle
>/dev
/null
2>&1
84 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/csqlinputtest12.sql
>/dev
/null
2>&1
88 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstart2.sql
89 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstar.sql
90 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstart3.sql
91 isql
$DS < $REL_PATH/dropt1t2t3.sql
> /dev
/null
2>&1
93 rm -f /tmp
/csql
/csqltable.conf
94 touch /tmp
/csql
/csqltable.conf