diff --git a/tests/script/general/parser/null_char.sim b/tests/script/general/parser/null_char.sim index bbb8dd4448374c4cad4a01e696a898d3404b51f3..09e761c85e68b1bc7a4464901080353936a4d8e5 100644 --- a/tests/script/general/parser/null_char.sim +++ b/tests/script/general/parser/null_char.sim @@ -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 \ No newline at end of file +system sh/exec.sh -n dnode1 -s stop -x SIGINT