From 09dc7c0e85b06398d4192253ae92a1bc4f11ac5f Mon Sep 17 00:00:00 2001 From: transtone Date: Tue, 4 Oct 2022 09:57:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AD=90=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=B8=8E=E5=A4=96=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java b/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java index 646b7d0d3..93a1ca1f4 100755 --- a/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java +++ b/APIJSONORM/src/main/java/apijson/orm/AbstractSQLConfig.java @@ -3787,7 +3787,9 @@ public String getSubqueryString(Subquery subquery) throws Exception { cfg.setPreparedValueList(new ArrayList<>()); String sql = (range == null || range.isEmpty() ? "" : range) + "(" + cfg.getSQL(isPrepared()) + ") "; - preparedValueList.addAll(cfg.getPreparedValueList()); + List origPreparedValueList = preparedValueList; + preparedValueList = cfg.getPreparedValueList(); + preparedValueList.addAll(origPreparedValueList); return sql; }