fix: 修改sql提高在不同的mysql中兼容性

This commit is contained in:
CaptainB 2022-03-10 14:06:38 +08:00 committed by 刘瑞斌
parent 1482485c9b
commit 7ffb9335e4
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@
order by `order` desc limit 1;
</select>
<select id="getApiCaseEnvironment" resultType="java.lang.String">
select request ->> '$.useEnvironment' from api_test_case where id = #{caseId}
select JSON_UNQUOTE(JSON_EXTRACT(request, '$.useEnvironment')) from api_test_case where id = #{caseId}
</select>
<update id="deleteToGc" parameterType="io.metersphere.api.dto.definition.ApiTestCaseRequest">
update api_test_case