Changed how query classifier determines which statements trigger implicit commit.

Changed test makefile and rwsplit.sh script and added two example sql scripts.
This commit is contained in:
VilhoRaatikka
2014-03-26 19:10:35 +02:00
parent df02926321
commit f49df89a0c
5 changed files with 86 additions and 28 deletions

View File

@ -1,14 +1,30 @@
#!/bin/sh
NARGS=6
TLOG=$1
THOST=$2
TPORT=$3
TUSER=$4
TPWD=$5
TINPUT=$2
THOST=$3
TPORT=$4
TUSER=$5
TPWD=$6
if [ $# != $NARGS ] ;
then
echo""
echo "Wrong number of arguments, gave "$#" but "$NARGS" is required"
echo ""
echo "Usage :"
echo " rwsplit.sh <log filename> <test input> <host> <port> <user> <password>"
echo ""
exit 1
fi
RUNCMD=mysql\ --host=$THOST\ -P$TPORT\ -u$TUSER\ -p$TPWD\ --unbuffered=true\ --disable-reconnect\ --silent
INPUT=test_transaction_routing1.sql
a=`$RUNCMD < ./$INPUT`
if [ "$a" != "2" ]; then echo "$INPUT FAILED">>$TLOG; exit 1 ;
else echo "$INPUT PASSED">>$TLOG ; fi
a=`$RUNCMD < ./$TINPUT`
if [ "$a" != "2" ]; then
echo "$TINPUT FAILED">>$TLOG;
else
echo "$TINPUT PASSED">>$TLOG ;
fi