提交 8d477bd6 编写于 作者: wafwerar's avatar wafwerar

fix(os): windows timezone error

上级 1e5ef3b1
......@@ -290,8 +290,12 @@ class TDTestCase:
sqlFile = pwd + "/0-others/sql.txt"
sql1 = "echo create database " + newDbName + " > " + sqlFile
sql2 = "echo use " + newDbName + " >> " + sqlFile
sql3 = "echo create table ntbf (ts timestamp, c binary(40)) >> " + sqlFile
sql4 = "echo insert into ntbf values (\"2021-04-01 08:00:00.000\", \"test taos -f1\")(\"2021-04-01 08:00:01.000\", \"test taos -f2\") >> " + sqlFile
if platform.system().lower() == 'windows':
sql3 = "echo create table ntbf (ts timestamp, c binary(40)) >> " + sqlFile
sql4 = "echo insert into ntbf values (\"2021-04-01 08:00:00.000\", \"test taos -f1\")(\"2021-04-01 08:00:01.000\", \"test taos -f2\") >> " + sqlFile
else:
sql3 = "echo create table ntbf \(ts timestamp, c binary\(40\)\) >> " + sqlFile
sql4 = "echo insert into ntbf values \(\"2021-04-01 08:00:00.000\", \"test taos -f1\"\)\(\"2021-04-01 08:00:01.000\", \"test taos -f2\"\) >> " + sqlFile
sql5 = "echo show databases >> " + sqlFile
os.system(sql1)
os.system(sql2)
......
......@@ -218,8 +218,12 @@ class TDTestCase:
sqlFile = pwd + "/0-others/sql.txt"
sql1 = "echo create database " + newDbName + " > " + sqlFile
sql2 = "echo use " + newDbName + " >> " + sqlFile
sql3 = "echo create table ntbf (ts timestamp, c binary(40)) no this item >> " + sqlFile
sql4 = "echo insert into ntbf values (\"2021-04-01 08:00:00.000\", \"test taos -f1\")(\"2021-04-01 08:00:01.000\", \"test taos -f2\") >> " + sqlFile
if platform.system().lower() == 'windows':
sql3 = "echo create table ntbf (ts timestamp, c binary(40)) no this item >> " + sqlFile
sql4 = "echo insert into ntbf values (\"2021-04-01 08:00:00.000\", \"test taos -f1\")(\"2021-04-01 08:00:01.000\", \"test taos -f2\") >> " + sqlFile
else:
sql3 = "echo create table ntbf \(ts timestamp, c binary\(40\)\) no this item >> " + sqlFile
sql4 = "echo insert into ntbf values \(\"2021-04-01 08:00:00.000\", \"test taos -f1\"\)\(\"2021-04-01 08:00:01.000\", \"test taos -f2\"\) >> " + sqlFile
sql5 = "echo show databases >> " + sqlFile
os.system(sql1)
os.system(sql2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册