adding test scripts
[csql.git] / test / tools / TableGT32Field / test001.ksh
bloba87ac6ed2b74356161dfd771796dafe0b99118c3
1 #!/bin/sh
2 # NULL TEST
3 # Create a table with more than 32 field.
4 # Insert some record with some null values.
5 # Check select Statement with is NULL and is not NULL.
6 # Update some record to NULL.
7 # Again Select with is NULL.
8 # Drop table.
9 # Author :Bijaya
11 QUITFILE=${PWD}/tools/TableGT32Field/create.sql
12 REL_PATH=.
13 if [ -s "$QUITFILE" ]
14 then
15 REL_PATH=`pwd`/tools/TableGT32Field
18 if [ "$VALGRIND" = "true" ]
19 then
20 valgrind --tool=memcheck --leak-check=full $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/create.sql
21 else
22 $CSQL_INSTALL_ROOT/bin/csql -u root -p manager -s ${REL_PATH}/create.sql
23 if [ $? -ne 0 ]
24 then
25 exit 1;
29 exit 0;