adding test scripts
[csql.git] / test / tools / csql / test087.ksh
blobc5497e4ffcbfdbbaf70e4c98706ce4ce32d62a85
1 #!/bin/ksh
2 #Test case
3 #Create table with table name adding special character and field name with special character.
4 #It should fail for name other than alphanumeric and underscore .
6 QUITFILE=${PWD}/tools/csql/quit.sql
7 REL_PATH=.
8 if [ -s "$QUITFILE" ]
9 then
10 REL_PATH=`pwd`/tools/csql
13 if [ "$VALGRIND" = "true" ]
14 then
15 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/dbobjname.sql 2> $0.valgr
16 else
17 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/dbobjname.sql
18 if [ $? -ne 0 ]
19 then
20 exit 1;
24 $CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -i
25 if [ $? -ne 0 ]
26 then
27 exit 1;