fix: replace tdSql.queryResult with res
This commit is contained in:
parent
f4e00a2483
commit
ddee6b86bf
|
@ -34,7 +34,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
|
||||
tdSql.query("select * from test.meters")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
for i in range(len(dbresult[0])):
|
||||
if i in (1, 2) and dbresult[0][i] is None:
|
||||
tdLog.exit("result[0][%d] is NULL, which should not be" % i)
|
||||
|
|
|
@ -29,7 +29,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -25,7 +25,7 @@ from frame import *
|
|||
class TDTestCase(TBase):
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -38,7 +38,7 @@ class TDTestCase(TBase):
|
|||
tdSql.checkRows(8)
|
||||
|
||||
# tdSql.query("select * from db.stb")
|
||||
# dbresult = tdSql.queryResult
|
||||
# dbresult = tdSql.res
|
||||
# print(dbresult)
|
||||
# if dbresult != []:
|
||||
# for i in range(len(dbresult[0])):
|
||||
|
|
|
@ -31,7 +31,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -31,7 +31,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
@ -40,7 +40,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from db.stb")
|
||||
rows = tdSql.queryResult[0]
|
||||
rows = tdSql.res[0]
|
||||
tdSql.query("select * from db.stb")
|
||||
for row in range(rows[0]):
|
||||
if major_ver == "3":
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -36,7 +36,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from db.stb")
|
||||
rows = tdSql.queryResult[0]
|
||||
rows = tdSql.res[0]
|
||||
tdSql.query("select * from db.stb")
|
||||
for row in range(rows[0]):
|
||||
tdSql.checkData(row, 3, 1)
|
||||
|
|
|
@ -31,7 +31,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
@ -40,7 +40,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from db.stb")
|
||||
rows = tdSql.queryResult[0]
|
||||
rows = tdSql.res[0]
|
||||
tdSql.query("select * from db.stb")
|
||||
for row in range(rows[0]):
|
||||
if major_ver == "3":
|
||||
|
|
|
@ -36,7 +36,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from db.t0")
|
||||
rows = tdSql.queryResult[0]
|
||||
rows = tdSql.res[0]
|
||||
tdSql.query("select * from db.t0")
|
||||
for row in range(rows[0]):
|
||||
tdSql.checkData(row, 1, 1)
|
||||
|
|
|
@ -38,7 +38,7 @@ class TDTestCase(TBase):
|
|||
tdSql.checkRows(8)
|
||||
|
||||
# tdSql.query("select * from db.stb")
|
||||
# dbresult = tdSql.queryResult
|
||||
# dbresult = tdSql.res
|
||||
# print(dbresult)
|
||||
# if dbresult != []:
|
||||
# for i in range(len(dbresult[0])):
|
||||
|
|
|
@ -62,7 +62,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select distinct(t0) from db.stb")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
if dbresult[0][0] not in (17, None):
|
||||
tdLog.exit("result[0][0]: {}".format(dbresult[0][0]))
|
||||
else:
|
||||
|
|
|
@ -47,7 +47,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select distinct(t0) from db.stb")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
if dbresult[0][0] not in (17, None):
|
||||
tdLog.exit("result[0][0]: {}".format(dbresult[0][0]))
|
||||
else:
|
||||
|
|
|
@ -26,8 +26,6 @@ class TDTestCase(TBase):
|
|||
[TD-11510] taosBenchmark test cases
|
||||
"""
|
||||
|
||||
|
||||
|
||||
def run(self):
|
||||
binPath = etool.benchMarkFile()
|
||||
cmd = "%s -f ./tools/benchmark/basic/json/stmt_sample_doesnt_use_ts.json" % binPath
|
||||
|
@ -47,7 +45,8 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select distinct(t0) from db.stb")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
|
||||
dbresult = tdSql.res
|
||||
if dbresult[0][0] not in (17, None):
|
||||
tdLog.exit("result[0][0]: {}".format(dbresult[0][0]))
|
||||
else:
|
||||
|
|
|
@ -40,7 +40,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select count(*) from stream_test.stb")
|
||||
tdSql.checkData(0, 0, 100000)
|
||||
tdSql.query("select count(*) from stream_test.output_streamtb;")
|
||||
tdSql.checkEqual(tdSql.queryResult[0][0] >= 0, True)
|
||||
tdSql.checkEqual(tdSql.res[0][0] >= 0, True)
|
||||
|
||||
def stop(self):
|
||||
tdSql.close()
|
||||
|
|
|
@ -31,7 +31,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -32,7 +32,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -36,7 +36,7 @@ class TDTestCase(TBase):
|
|||
os.system("%s" % cmd)
|
||||
tdSql.execute("reset query cache")
|
||||
tdSql.query("select count(*) from db.t0")
|
||||
rows = tdSql.queryResult[0]
|
||||
rows = tdSql.res[0]
|
||||
tdSql.query("select * from db.t0")
|
||||
for row in range(rows[0]):
|
||||
tdSql.checkData(row, 1, 1)
|
||||
|
|
|
@ -77,7 +77,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select count(*) from db.stb where c1 >= 0 and c1 <= 10")
|
||||
tdSql.checkData(0, 0, 160)
|
||||
tdSql.query("select c0,c1,c2 from db.stb limit 1")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
for i in range(len(dbresult[0])):
|
||||
if i in (0, 1) and dbresult[0][i] is None:
|
||||
tdLog.exit("result[0][%d] is NULL, which should not be" % i)
|
||||
|
|
|
@ -28,7 +28,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -62,7 +62,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select distinct(t0) from db.stb")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
if dbresult[0][0] not in (17, None):
|
||||
tdLog.exit("result[0][0]: {}".format(dbresult[0][0]))
|
||||
else:
|
||||
|
|
|
@ -47,7 +47,7 @@ class TDTestCase(TBase):
|
|||
tdSql.query("select distinct(t0) from db.stb")
|
||||
tdSql.checkRows(2)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
if dbresult[0][0] not in (17, None):
|
||||
tdLog.exit("result[0][0]: {}".format(dbresult[0][0]))
|
||||
else:
|
||||
|
|
|
@ -27,7 +27,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -32,7 +32,7 @@ class TDTestCase(TBase):
|
|||
|
||||
def run(self):
|
||||
tdSql.query("select client_version()")
|
||||
client_ver = "".join(tdSql.queryResult[0])
|
||||
client_ver = "".join(tdSql.res[0])
|
||||
major_ver = client_ver.split(".")[0]
|
||||
|
||||
binPath = etool.benchMarkFile()
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
set -e
|
||||
count=0
|
||||
for i in `find tools/benchmark/basic/ -name "*.py"`
|
||||
do printf "cnt=$count python3 test.py -f $i \n"
|
||||
python3 test.py -f $i
|
||||
((count=count+1))
|
||||
done
|
||||
|
||||
echo "benchmark/basic count=$count \n"
|
|
@ -84,7 +84,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -W db=newdb" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -85,7 +85,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -W db=newdb" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -87,7 +87,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -W db=newdb" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -71,7 +71,7 @@ class TDTestCase:
|
|||
os.system("%s -e -i %s -T 1 -W Db=NewDb" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -69,7 +69,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -83,7 +83,7 @@ class TDTestCase:
|
|||
tdSql.execute("use db")
|
||||
|
||||
tdSql.query("SELECT * from tb")
|
||||
for i in range(1, len(tdSql.queryResult[0])):
|
||||
for i in range(1, len(tdSql.res[0])):
|
||||
tdSql.checkData(0, i, None)
|
||||
|
||||
def stop(self):
|
||||
|
|
|
@ -89,7 +89,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -91,7 +91,7 @@ class TDTestCase:
|
|||
tdSql.execute("use newdb")
|
||||
tdSql.query("select * from information_schema.ins_databases")
|
||||
tdSql.checkRows(4)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
# 6--duration,7--keep0,keep1,keep
|
||||
|
||||
isCommunity = self.checkCommunity()
|
||||
|
@ -116,7 +116,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("show tables")
|
||||
tdSql.checkRows(2)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert (dbresult[i][0] == "t1") or (dbresult[i][0] == "t2")
|
||||
|
|
|
@ -85,7 +85,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -75,7 +75,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -73,7 +73,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -67,7 +67,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -85,7 +85,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("show tables")
|
||||
tdSql.checkRows(2)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert dbresult[i][0] in ("t1", "t2")
|
||||
|
|
|
@ -66,7 +66,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -84,7 +84,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("show tables")
|
||||
tdSql.checkRows(3)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert (
|
||||
|
@ -95,7 +95,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("select btag from st")
|
||||
tdSql.checkRows(3)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
|
||||
tdSql.query("select * from st where btag = true")
|
||||
|
|
|
@ -74,7 +74,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -74,7 +74,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -69,7 +69,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -g" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -88,7 +88,7 @@ class TDTestCase:
|
|||
tdSql.query("show tables")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert (
|
||||
|
@ -100,7 +100,7 @@ class TDTestCase:
|
|||
tdSql.query("select jtag->'location' from st")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -118,7 +118,7 @@ class TDTestCase:
|
|||
tdSql.query("select jtag from st")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -71,7 +71,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -73,7 +73,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -g" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -g" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -g" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -i %s -T 1 -g" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -71,7 +71,7 @@ class TDTestCase:
|
|||
os.system("%s -R -e -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -74,7 +74,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -68,7 +68,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -86,7 +86,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("show tables")
|
||||
tdSql.checkRows(2)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert dbresult[i][0] in ("t1", "t2")
|
||||
|
|
|
@ -67,7 +67,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -85,7 +85,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("show tables")
|
||||
tdSql.checkRows(3)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert (
|
||||
|
@ -96,7 +96,7 @@ class TDTestCase:
|
|||
|
||||
tdSql.query("select btag from st")
|
||||
tdSql.checkRows(3)
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
|
||||
tdSql.query("select * from st where btag = true")
|
||||
|
@ -110,7 +110,7 @@ class TDTestCase:
|
|||
tdSql.checkData(0, 2, "False")
|
||||
|
||||
tdSql.query("select * from st where btag is null")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 1, None)
|
||||
|
|
|
@ -75,7 +75,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -133,7 +133,7 @@ class TDTestCase:
|
|||
tdLog.exit("data is different")
|
||||
|
||||
tdSql.query("select * from st where dbtag is null")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
|
||||
tdSql.checkRows(1)
|
||||
|
|
|
@ -75,7 +75,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -71,7 +71,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -109,7 +109,7 @@ class TDTestCase:
|
|||
tdSql.checkData(0, 2, -2147483647)
|
||||
|
||||
tdSql.query("select * from st where ntag is null")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
tdSql.checkRows(1)
|
||||
tdSql.checkData(0, 0, 0)
|
||||
|
|
|
@ -70,7 +70,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -89,7 +89,7 @@ class TDTestCase:
|
|||
tdSql.query("show tables")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
for i in range(len(dbresult)):
|
||||
assert (
|
||||
|
@ -101,7 +101,7 @@ class TDTestCase:
|
|||
tdSql.query("select jtag->'location' from st")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -119,7 +119,7 @@ class TDTestCase:
|
|||
tdSql.query("select jtag from st")
|
||||
tdSql.checkRows(3)
|
||||
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -72,7 +72,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -74,7 +74,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -112,7 +112,7 @@ class TDTestCase:
|
|||
tdSql.checkData(0, 2, -127)
|
||||
|
||||
tdSql.query("select * from st where tntag is null")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
|
||||
tdSql.checkRows(1)
|
||||
|
|
|
@ -72,7 +72,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -71,7 +71,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
@ -103,7 +103,7 @@ class TDTestCase:
|
|||
tdSql.checkData(0, 2, 4294967294)
|
||||
|
||||
tdSql.query("select * from st where untag is null")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
print(dbresult)
|
||||
|
||||
tdSql.checkRows(1)
|
||||
|
|
|
@ -72,7 +72,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
|
@ -72,7 +72,7 @@ class TDTestCase:
|
|||
os.system("%s -R -i %s -T 1" % (binPath, self.tmpdir))
|
||||
|
||||
tdSql.query("show databases")
|
||||
dbresult = tdSql.queryResult
|
||||
dbresult = tdSql.res
|
||||
|
||||
found = False
|
||||
for i in range(len(dbresult)):
|
||||
|
|
Loading…
Reference in New Issue