3 # 6. Non cached table there in csql and mysql. run complex query (avg on some field). It should get the correct value from mysql.
5 #Run this test only under csql/test or on this directory.
6 #Otherwise, it may fail
7 CSQL_CONF
=${PWD}/cache
/Gateway
/csql.conf
8 input
=${PWD}/cache
/Gateway
/mysqlinputtest1.sql
10 if [ -s "$input" -a -s "$CSQL_CONF" ]
12 REL_PATH
=${PWD}/cache
/Gateway
14 export CSQL_CONFIG_FILE
=$REL_PATH/csql.conf
16 isql
$DSN < $REL_PATH/mysqlinputtest5.sql
> /dev
/null
2>&1
18 # edit /tmp/csql/csqltable.conf
20 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
24 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstar.sql
25 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/complex.sql
27 isql
$DSN < $REL_PATH/dropall.sql
> /dev
/null
2>&1