fix case
This commit is contained in:
parent
c97518a81e
commit
3f29e09b41
|
@ -72,11 +72,11 @@ class TDTestCase:
|
||||||
if col in NUM_COL:
|
if col in NUM_COL:
|
||||||
return f" abs( {tbname}.{col} ) >= 0"
|
return f" abs( {tbname}.{col} ) >= 0"
|
||||||
elif col in CHAR_COL:
|
elif col in CHAR_COL:
|
||||||
return f" lower( {tbname}.{col} ) is not null"
|
return f" lower( {tbname}.{col} ) like 'bina%' or lower( {tbname}.{col} ) like '_cha%' "
|
||||||
elif col in BOOLEAN_COL:
|
elif col in BOOLEAN_COL:
|
||||||
return f" {tbname}.{col} in (false, true) "
|
return f" {tbname}.{col} in (false, true) "
|
||||||
elif col in TS_TYPE_COL or col in PRIMARY_COL:
|
elif col in TS_TYPE_COL or col in PRIMARY_COL:
|
||||||
return f" abs( cast( {tbname}.{col} as bigint ) ) >= 0 "
|
return f" cast( {tbname}.{col} as binary(16) ) is not null "
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
@ -92,7 +92,11 @@ class TDTestCase:
|
||||||
group_no_having= self.__group_condition(tbname=tblist[0], col=condition )
|
group_no_having= self.__group_condition(tbname=tblist[0], col=condition )
|
||||||
groups = ["", group_having, group_no_having]
|
groups = ["", group_having, group_no_having]
|
||||||
for group_condition in groups:
|
for group_condition in groups:
|
||||||
|
if where_condition:
|
||||||
sql = f" select {condition} from {tblist[0]},{tblist[1]} where {join_condition} and {where_condition} {group_condition} "
|
sql = f" select {condition} from {tblist[0]},{tblist[1]} where {join_condition} and {where_condition} {group_condition} "
|
||||||
|
else:
|
||||||
|
sql = f" select {condition} from {tblist[0]},{tblist[1]} where {join_condition} {group_condition} "
|
||||||
|
|
||||||
if not join_flag :
|
if not join_flag :
|
||||||
tdSql.error(sql=sql)
|
tdSql.error(sql=sql)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue