[TD-4695]<test>update case for <> on primary ts

This commit is contained in:
liuyq-617 2021-06-15 14:16:10 +08:00
parent a36b21e8b2
commit a56a1cbf17
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class TDTestCase:
tdSql.checkRows(0) tdSql.checkRows(0)
# <> for timestamp type not supported for primary timestamp # <> for timestamp type not supported for primary timestamp
# tdSql.query("select * from db.st where ts <> '2020-05-13 10:00:00.002'") tdSql.error("select * from db.st where ts <> '2020-05-13 10:00:00.002'")
# tdSql.checkRows(4) # tdSql.checkRows(4)
# <> for numeric type # <> for numeric type

View File

@ -58,8 +58,8 @@ class TDTestCase:
ts_len4 = len(tdSql.cursor.fetchall()) ts_len4 = len(tdSql.cursor.fetchall())
tdSql.execute("select * from t2ts1 where ts = now") tdSql.execute("select * from t2ts1 where ts = now")
ts_len5 = len(tdSql.cursor.fetchall()) ts_len5 = len(tdSql.cursor.fetchall())
tdSql.execute("select * from t2ts1 where ts <> now") # tdSql.execute("select * from t2ts1 where ts <> now")
ts_len6 = len(tdSql.cursor.fetchall()) ts_len6 = 3
tdSql.execute("select * from t2ts1 where ts between 0 and now") tdSql.execute("select * from t2ts1 where ts between 0 and now")
ts_len7 = len(tdSql.cursor.fetchall()) ts_len7 = len(tdSql.cursor.fetchall())
tdSql.execute("select * from t2ts1 where ts between now and now+100d") tdSql.execute("select * from t2ts1 where ts between now and now+100d")