Skip to content

Commit

Permalink
解决前后置查询sql获取数组保存为元组的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Chras-fu committed Jan 16, 2024
1 parent 3864fc4 commit 81c4d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/api/teststep.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def exec_sql(self, sql, case):
continue
if j >= len(values):
raise IndexError("变量数错误, 请检查变量数配置是否与查询语句一致,当前查询结果: <br>{}".format(results))
self.context[n] = values[j] # 保存变量到变量空间
self.context[n] = list(values[j]) # 保存变量到变量空间

def save_response(self, res):
"""保存响应结果"""
Expand Down

0 comments on commit 81c4d77

Please sign in to comment.