test:add testcase of childtale_from_to
This commit is contained in:
parent
dac59f16f4
commit
f6f4e81333
|
@ -61,9 +61,9 @@ class TDTestCase:
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("show db.tables")
|
||||
tdSql.checkRows(10)
|
||||
tdSql.checkRows(8)
|
||||
tdSql.query("select count(*) from db.stb")
|
||||
tdSql.checkData(0, 0, 100)
|
||||
tdSql.checkData(0, 0, 80)
|
||||
|
||||
def stop(self):
|
||||
tdSql.close()
|
||||
|
|
|
@ -15,13 +15,18 @@
|
|||
"num_of_records_per_req": 10,
|
||||
"databases": [{
|
||||
"dbinfo": {
|
||||
"name": "db"
|
||||
"name": "db",
|
||||
"drop": "yes"
|
||||
|
||||
},
|
||||
"super_tables": [{
|
||||
"child_table_exists":"no",
|
||||
"name": "stb",
|
||||
"childtable_prefix": "stb_",
|
||||
"childtable_count": 10,
|
||||
"insert_rows": 10,
|
||||
"childtable_from": 1,
|
||||
"childtable_to": 9,
|
||||
"columns": [{"type": "INT"}],
|
||||
"tags": [{"type": "INT"}]
|
||||
}]
|
||||
|
|
Loading…
Reference in New Issue