3 # 9. Create table t1 in mysql with primary key. Insert 10 rows.
4 # Cache the table in csql.
5 # Update 2 rows in csql and 2 rows in mysql with different primary keys.
6 # Run $ cacheverify -t t1.
7 # The output should display number of records as 10 for both csql and
9 # Run $ cacheverify -t t1 -p.
10 # The output should display no missing records in either of the
12 # Run $ cacheverify -t t1 -f.
13 # The output should display the 4 inconsistent records.
14 # Only those fields with different values should be displayed
15 # for inconsistent records.
17 #Run this test only under csql/test or on this directory.
18 #Otherwise, it may fail
20 input
=${PWD}/cache
/CacheVerify
/mysqlinput.sql
24 REL_PATH
=${PWD}/cache
/CacheVerify
27 isql
$DSN < ${REL_PATH}/mysqlinput.sql
>/dev
/null
2>&1
33 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/mysqlinput.sql
>/dev
/null
2>&1
39 echo "1:t1 NULL" > /tmp
/csql
/csqltable.conf
40 isql
$DSN < ${REL_PATH}/mysqlupdate.sql
>/dev
/null
2>&1
47 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/csqlupdate.sql
>/dev
/null
2>&1
53 $CSQL_INSTALL_ROOT/bin
/cacheverify
-t t1
59 $CSQL_INSTALL_ROOT/bin
/cacheverify
-t t1
-p
65 $CSQL_INSTALL_ROOT/bin
/cacheverify
-t t1
-f
71 rm -f /tmp
/csql
/csqltable.conf
72 touch /tmp
/csql
/csqltable.conf
73 isql
$DSN < $REL_PATH/drop.sql
>/dev
/null
2>&1
74 $CSQL_INSTALL_ROOT/bin
/csql
-s $REL_PATH/drop.sql
>/dev
/null
2>&1