Skip to content

Commit

Permalink
Server:标记 APP JOIN 与 SQL JOIN 混用导致的 APP JOIN 缓存问题
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Dec 15, 2018
1 parent 4018963 commit 226d5dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public JSONObject execute(SQLConfig config) throws Exception {

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

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

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

Expand Down

0 comments on commit 226d5dd

Please sign in to comment.