tagregex: fix test error
This commit is contained in:
parent
6363169a47
commit
f842633b17
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue