@@ -181,7 +181,7 @@ public JSONObject execute(@NotNull SQLConfig config, boolean unknowType) throws
181181
182182 ResultSet rs = null ;
183183
184- boolean noCache = false ; // true;
184+ boolean noCache = true ;
185185
186186 if (unknowType ) {
187187 Statement statement = getStatement (config );
@@ -229,7 +229,7 @@ public JSONObject execute(@NotNull SQLConfig config, boolean unknowType) throws
229229
230230 case GET :
231231 case GETS :
232- // noCache = config.isExplain() || config.isTest();
232+ noCache = config .isExplain () || config .isTest ();
233233
234234 result = noCache ? null : getCacheItem (sql , position , config .getCache ());
235235 Log .i (TAG , ">>> select result = getCache('" + sql + "', " + position + ") = " + result );
@@ -282,7 +282,7 @@ public JSONObject execute(@NotNull SQLConfig config, boolean unknowType) throws
282282 // }
283283
284284 // bugfix-修复非常规数据库字段,获取表名失败导致输出异常
285- if (hasJoin && viceColumnStart > length ) {
285+ if (noCache == false && hasJoin && viceColumnStart > length ) {
286286 List <String > column = config .getColumn ();
287287
288288 if (column != null && column .isEmpty () == false ) {
@@ -293,7 +293,7 @@ else if (config.getSQLTable().equalsIgnoreCase(rsmd.getTableName(i)) == false) {
293293 }
294294 }
295295
296- item = onPutColumn (config , rs , rsmd , index , item , i , hasJoin && i >= viceColumnStart ? childMap : null );
296+ item = onPutColumn (config , rs , rsmd , index , item , i , noCache == false && hasJoin && i >= viceColumnStart ? childMap : null );
297297 }
298298
299299 resultList = onPutTable (config , rs , rsmd , resultList , index , item );
@@ -321,7 +321,7 @@ else if (config.getSQLTable().equalsIgnoreCase(rsmd.getTableName(i)) == false) {
321321
322322 // @ APP JOIN 查询副表并缓存到 childMap >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
323323
324- // if (noCache == false) {
324+ if (noCache == false ) {
325325 //子查询 SELECT Moment.*, Comment.id 中的 Comment 内字段
326326 Set <Entry <String , JSONObject >> set = childMap .entrySet ();
327327
@@ -333,7 +333,7 @@ else if (config.getSQLTable().equalsIgnoreCase(rsmd.getTableName(i)) == false) {
333333 }
334334
335335 putCache (sql , resultList , config .getCache ());
336- // }
336+ }
337337 Log .i (TAG , ">>> select putCache('" + sql + "', resultList); resultList.size() = " + resultList .size ());
338338
339339 long endTime = System .currentTimeMillis ();
0 commit comments