File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
APIJSONORM/src/main/java/apijson/orm Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -6322,12 +6322,15 @@ LEFT JOIN ( SELECT count(*) AS count FROM sys.Comment ) AS Comment ON Comment.m
63226322 if (RequestMethod .isHeadMethod (method , true )) {
63236323 List <On > onList = join .getOnList ();
63246324 List <String > column = onList == null ? null : new ArrayList <>(onList .size ());
6325- if (column != null ) {
6326- for (On on : onList ) {
6327- //解决 pg 如果只查询关联键,会报找不到column的错误
6328- ///* SELECT count(*) AS count FROM sys.Moment AS Moment
6329- // LEFT JOIN ( SELECT * FROM sys.Comment ) AS Comment ON Comment.momentId = Moment.id LIMIT 1 OFFSET 0 */
6330- //column.add(on.getKey());
6325+ //解决 pg 如果只查询关联键,会报找不到column的错误
6326+ ///* SELECT count(*) AS count FROM sys.Moment AS Moment
6327+ // LEFT JOIN ( SELECT * FROM sys.Comment ) AS Comment ON Comment.momentId = Moment.id LIMIT 1 OFFSET 0 */
6328+ if (joinConfig .isMySQL ()) {
6329+ if (column != null ) {
6330+ for (On on : onList ) {
6331+ column .add (on .getKey ());
6332+ }
6333+
63316334 }
63326335 }
63336336
You can’t perform that action at this time.
0 commit comments