update
This commit is contained in:
parent
3ce47ac0bd
commit
49a5049eb6
|
@ -25,13 +25,12 @@ from util.common import *
|
||||||
class TDTestCase:
|
class TDTestCase:
|
||||||
def init(self, conn, logSql):
|
def init(self, conn, logSql):
|
||||||
tdLog.debug("start to execute %s" % __file__)
|
tdLog.debug("start to execute %s" % __file__)
|
||||||
tdSql.init(conn.cursor(),logSql)
|
tdSql.init(conn.cursor())
|
||||||
|
|
||||||
self.dbname = 'db_test'
|
self.dbname = 'db_test'
|
||||||
self.ntbname = 'ntb'
|
self.ntbname = 'ntb'
|
||||||
self.stbname = 'stb'
|
self.stbname = 'stb'
|
||||||
self.rowNum = 5
|
self.rowNum = 10
|
||||||
self.tbnum = 2
|
self.tbnum = 5
|
||||||
self.ts = 1537146000000
|
self.ts = 1537146000000
|
||||||
self.str_length = 20
|
self.str_length = 20
|
||||||
self.column_dict = {
|
self.column_dict = {
|
||||||
|
@ -87,7 +86,6 @@ class TDTestCase:
|
||||||
else:
|
else:
|
||||||
sql += f'({self.ts+i},{values})'
|
sql += f'({self.ts+i},{values})'
|
||||||
sql += ' '
|
sql += ' '
|
||||||
print(sql)
|
|
||||||
tdSql.execute(sql)
|
tdSql.execute(sql)
|
||||||
|
|
||||||
def insert_data(self,col_type,tbname,rows,data):
|
def insert_data(self,col_type,tbname,rows,data):
|
||||||
|
|
Loading…
Reference in New Issue