fix: 修改sql提高在不同的mysql中兼容性
This commit is contained in:
parent
d65142dd21
commit
0b00490b62
|
@ -752,7 +752,7 @@
|
||||||
order by `order` desc limit 1;
|
order by `order` desc limit 1;
|
||||||
</select>
|
</select>
|
||||||
<select id="getApiCaseEnvironment" resultType="java.lang.String">
|
<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>
|
</select>
|
||||||
<update id="deleteToGc" parameterType="io.metersphere.api.dto.definition.ApiTestCaseRequest">
|
<update id="deleteToGc" parameterType="io.metersphere.api.dto.definition.ApiTestCaseRequest">
|
||||||
update api_test_case
|
update api_test_case
|
||||||
|
|
Loading…
Reference in New Issue