提交 e03a6c2f 编写于 作者: A Alex Duan

test: autogen.py remove radom select

上级 ad6dd54a
...@@ -51,7 +51,7 @@ class AutoGen: ...@@ -51,7 +51,7 @@ class AutoGen:
metas = [] metas = []
for i in range(cnt): for i in range(cnt):
colname = f"{pre}{i}" colname = f"{pre}{i}"
sel = len(types) % len(types) sel = i % len(types)
coltype = types[sel] coltype = types[sel]
sql = f"{colname} {coltype}" sql = f"{colname} {coltype}"
if sqls != "": if sqls != "":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册