[TD-4132]<test>:modify taosdump-testcase of column length
This commit is contained in:
parent
c62695028f
commit
f5f56ae280
|
@ -114,18 +114,18 @@ class TDTestCase:
|
|||
tdSql.execute("create stable st12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))")
|
||||
tdSql.error("create stable st_12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))")
|
||||
tdSql.execute("create stable st(ts timestamp, c1 int, c2 nchar(10)) tags(t1 int, t2 binary(10))")
|
||||
tdSql.execute("create stable st1(ts timestamp, c1 int, col2_012345678901234567890123456789012345678901234567890123456789 nchar(10)) tags(t1 int, t2 binary(10))")
|
||||
tdSql.error("create stable st1(ts timestamp, c1 int, col2_012345678901234567890123456789012345678901234567890123456789 nchar(10)) tags(t1 int, t2 binary(10))")
|
||||
|
||||
tdSql.execute("select * from db12312313231231321312312312_323.st12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9")
|
||||
tdSql.error("create table t0_12345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678912345678_9 using st tags(1, 'beijing')")
|
||||
tdSql.query("show stables")
|
||||
tdSql.checkRows(3)
|
||||
tdSql.checkRows(2)
|
||||
os.system("taosdump --databases db12312313231231321312312312_323 -o /taosdumptest/tmp1")
|
||||
tdSql.execute("drop database db12312313231231321312312312_323")
|
||||
os.system("taosdump -i /taosdumptest/tmp1")
|
||||
tdSql.execute("use db12312313231231321312312312_323")
|
||||
tdSql.query("show stables")
|
||||
tdSql.checkRows(3)
|
||||
tdSql.checkRows(2)
|
||||
os.system("rm -rf /taosdumptest/tmp1")
|
||||
os.system("rm -rf /taosdumptest/tmp2")
|
||||
os.system("rm -rf ./dump_result.txt")
|
||||
|
|
Loading…
Reference in New Issue