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 $ct2_name using $st_name tags('taosdata2')
|
||||||
sql create table not_match using $st_name tags('NOTMATCH')
|
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:]]'
|
sql select tbname from $st_name where tbname match '^ct[[:digit:]]'
|
||||||
|
|
||||||
if $rows != 2 then
|
if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
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:]]+'
|
sql select tbname from $st_name where t1b match '[[:lower:]]+'
|
||||||
if $rows != 2 then
|
if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -95,15 +95,15 @@ if $rows != 2 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print $tbPrefix, $data00 $data10
|
print $tbPrefix
|
||||||
$tb = $tbPrefix . 0
|
$tb = $tbPrefix . 0
|
||||||
if $data00 != $tb then
|
if $data00 != wh_tb1 then
|
||||||
print expect $tb, actual:$data00
|
print expect wh_tb1, actual:$data00
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
$tb = $tbPrefix . 1
|
$tb = $tbPrefix . 1
|
||||||
if $data10 != $tb then
|
if $data10 != wh_tb0 then
|
||||||
print expect $tb, actual:$data00
|
print expect wh_tb0, actual:$data00
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue