Skip to content

Commit 226d5dd

Browse files
committed
Server:标记 APP JOIN 与 SQL JOIN 混用导致的 APP JOIN 缓存问题
1 parent 4018963 commit 226d5dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APIJSON-Java-Server/APIJSONLibrary/src/main/java/zuo/biao/apijson/server/AbstractSQLExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public JSONObject execute(SQLConfig config) throws Exception {
206206

207207
boolean hasJoin = config.hasJoin();
208208
int viceColumnStart = length + 1; //第一个副表字段的index
209-
while (rs.next()){
209+
while (rs.next()) {
210210
index ++;
211211
Log.d(TAG, "\n\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n select while (rs.next()){ index = " + index + "\n\n");
212212

@@ -326,7 +326,7 @@ protected void executeAppJoin(SQLConfig config, Map<Integer, JSONObject> resultM
326326

327327
JSONObject result;
328328
String cacheSql;
329-
while (rs.next()){
329+
while (rs.next()) { //FIXME 同时有 @ APP JOIN 和 < 等 SQL JOIN 时,next = false 总是无法进入循环,导致缓存失效,可能是连接池或线程问题
330330
index ++;
331331
Log.d(TAG, "\n\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n executeAppJoin while (rs.next()){ index = " + index + "\n\n");
332332

0 commit comments

Comments
 (0)