3 #14. Create 't1' table in Target DB with two records,
4 # Load selected records into CSQL with -c "f1=1" option.
5 # select query executes the selected records from CSQL.
7 #Run this only under csql/test or on this directory, Otherwise it will fail.
9 # Author : Jitendra Lenka
11 input
=${PWD}/cache
/CacheTable
/inputtest4.sql
15 REL_PATH
=${PWD}/cache
/CacheTable
18 isql
$DSN < ${REL_PATH}/inputtest4.sql
>/dev
/null
2>&1
24 echo Table t1 created with two records
in target db.
26 rm -f /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
27 touch /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
29 #cache from target to csql with -c option
30 echo "cachetable -t t1 -c \"f1=1\" "
31 $CSQL_INSTALL_ROOT/bin
/cachetable
-t t1
-c "f1=1" >/dev
/null
2>&1
34 rm -f /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
35 touch /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
37 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/drop.sql
> /dev
/null
2>&1
38 isql
$DSN < ${REL_PATH}/drop.sql
>/dev
/null
2>&1
42 echo "select * from t1;"
43 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/selectt1.sql
45 rm -f /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
46 touch /tmp
/csql
/csqltable.conf
/tmp
/csql
/csql.db
48 $CSQL_INSTALL_ROOT/bin
/csql
-s ${REL_PATH}/drop.sql
> /dev
/null
2>&1
49 isql
$DSN < ${REL_PATH}/drop.sql
>/dev
/null
2>&1