Construct an empty result for later result checking

This commit is contained in:
plum-lihui 2020-06-18 17:22:43 +08:00
parent 52014a25ad
commit ccd9cde5d1
1 changed files with 4 additions and 5 deletions

View File

@ -212,12 +212,11 @@ if $data00 != shanghai then
endi
##### test 'space' case
$tagvalue = ''
$tagvalue = $tagvalue '
system_content echo ' ' | sed 's/ //g' | tr -d '\n' # Construct an empty result for later result checking
sql alter table st41 set tag tag_binary = ""
sql select tag_binary, tag_nchar, tag_int, tag_bool, tag_float, tag_double from st41
if $data00 != @@ then
print expect , actual $data00
if $data00 != $system_content then
print expect [ $system_content ], actual [ $data00 ]
return -1
endi
@ -498,4 +497,4 @@ sql_error alter table st51 set tag tag_tinyint = abc379
#sql drop database $db
system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode1 -s stop -x SIGINT