未验证 提交 b116e730 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2725 from taosdata/feature/pyconn

[TD-971] change create db sql
...@@ -29,7 +29,7 @@ if __name__ == '__main__': ...@@ -29,7 +29,7 @@ if __name__ == '__main__':
# Create a database named db # Create a database named db
try: try:
c1.execute('create database db') c1.execute('create database if not exists db ')
except Exception as err: except Exception as err:
conn.close() conn.close()
raise(err) raise(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册