Skip to content

Commit 498fcf5

Browse files
committed
test: clarify JoinCountTest purpose and remove unused imports
1 parent 225cd1c commit 498fcf5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/test/java/apijson/orm/AbstractSQLConfigJoinCountTest.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
import java.util.List;
1313
import java.util.Map;
1414

15-
import static org.junit.Assert.assertEquals;
1615
import static org.junit.Assert.assertTrue;
17-
import static org.junit.Assert.fail;
1816

1917
/**
20-
* 复现 issue #824:PostgreSQL + HEAD(count 分页) + JOIN 时,
21-
* LEFT JOIN 子查询 SELECT 只含副表关联键,缺 ON 引用的主表字段,PG 报 column not found。
18+
* 复现 issue #824:多表 JOIN + HEAD(count 分页) 子查询字段缺失。
19+
* - PostgreSQL:LEFT JOIN 子查询回退 SELECT *(main 已修复原报告场景,此处作回归)
20+
* - MySQL:子查询只选自身关联键,缺被其它 ON 引用的字段,仍会报 Unknown column(本次修复)
2221
*/
2322
public class AbstractSQLConfigJoinCountTest {
2423
private static final String MAIN_TABLE = "Inventory";

0 commit comments

Comments
 (0)