提交 f842633b 编写于 作者: S shenglian zhou

tagregex: fix test error

上级 6363169a
......@@ -22,12 +22,23 @@ sql create table $ct1_name using $st_name tags('taosdata1')
sql create table $ct2_name using $st_name tags('taosdata2')
sql create table not_match using $st_name tags('NOTMATCH')
sql select tbname from $st_name where tbname match '.*'
if $rows != 3 then
return -1
endi
sql select tbname from $st_name where tbname match '^ct[[:digit:]]'
if $rows != 2 then
return -1
endi
sql select tbname from $st_name where tbname match '.*'
if $rows !=3 then
return -1
endi
sql select tbname from $st_name where t1b match '[[:lower:]]+'
if $rows != 2 then
return -1
......
......@@ -95,15 +95,15 @@ if $rows != 2 then
return -1
endi
print $tbPrefix, $data00 $data10
print $tbPrefix
$tb = $tbPrefix . 0
if $data00 != $tb then
print expect $tb, actual:$data00
if $data00 != wh_tb1 then
print expect wh_tb1, actual:$data00
return -1
endi
$tb = $tbPrefix . 1
if $data10 != $tb then
print expect $tb, actual:$data00
if $data10 != wh_tb0 then
print expect wh_tb0, actual:$data00
return -1
endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册