[TD-1497]<test> python connector check
This commit is contained in:
parent
206a1ccb3e
commit
badbbe70dd
|
@ -45,6 +45,7 @@ class ConnectorChecker:
|
||||||
print("Failure sql: %s,exception: %s" %
|
print("Failure sql: %s,exception: %s" %
|
||||||
sql,str(e))
|
sql,str(e))
|
||||||
def close(self):
|
def close(self):
|
||||||
|
print("connetion closed.")
|
||||||
self.cl.close()
|
self.cl.close()
|
||||||
self.conn.close()
|
self.conn.close()
|
||||||
def createDatabase(self):
|
def createDatabase(self):
|
||||||
|
@ -66,7 +67,6 @@ class ConnectorChecker:
|
||||||
sql = "select * from test.weather"
|
sql = "select * from test.weather"
|
||||||
self.executeQuery(sql)
|
self.executeQuery(sql)
|
||||||
def srun(self):
|
def srun(self):
|
||||||
print(self.host)
|
|
||||||
try:
|
try:
|
||||||
self.conn = taos.connect(host=self.host,user=self.user,password=self.password)
|
self.conn = taos.connect(host=self.host,user=self.user,password=self.password)
|
||||||
#self.conn = taos.connect(self.host,self.user,self.password)
|
#self.conn = taos.connect(self.host,self.user,self.password)
|
||||||
|
|
Loading…
Reference in New Issue