3 # 3. Create table t1 in CSQL with all supported data types in it. and insert 10 records in it.
4 # Note that in this test case the table is not cached in csql and is present in csql
5 # insert 10 more records using csql tool.
6 # select records with WHERE clause containing parameters for all the fields with different data types.
7 # update all fields with WHERE clause on primary key
8 # delete records with WHERE clause on all fields
10 #Run this test only under csql/test or on this directory.
11 #Otherwise, it may fail
12 CSQL_CONF
=${PWD}/cache
/Gateway
/csql.conf
13 input
=${PWD}/cache
/Gateway
/mysqlinputtest1.sql
15 if [ -s "$input" -a -s "$CSQL_CONF" ]
17 REL_PATH
=${PWD}/cache
/Gateway
20 cp $REL_PATH/csql.conf
/tmp
21 export CSQL_CONFIG_FILE
=/tmp
/csql.conf
22 echo DSN
=$DSN >>$CSQL_CONFIG_FILE
26 echo "DSN is not set for target db"
30 # edit /tmp/csql/csqltable.conf
31 rm -f /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
32 touch /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
34 $CSQL_INSTALL_ROOT/bin
/csqlserver
>/dev
/null
2>&1 &
37 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/csqlinputtest3.sql
>/dev
/null
2>&1
40 echo "Unable Start Server"
44 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstar.sql
45 isql
$DSN < $REL_PATH/selectstar.sql
2>&1
46 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/csqlinputtest3a.sql
>/dev
/null
2>&1
47 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/select.sql
48 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/update.sql
>/dev
/null
2>&1
49 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/delete.sql
>/dev
/null
2>&1
50 $CSQL_INSTALL_ROOT/bin
/csql
-g -s $REL_PATH/selectstar.sql
51 isql
$DSN < $REL_PATH/selectstar.sql
2>&1
52 isql
$DSN < $REL_PATH/dropall.sql
> /dev
/null
2>&1
53 rm -f /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
54 touch /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db