1 parent 225cd1c commit 498fcf5Copy full SHA for 498fcf5
1 file changed
src/test/java/apijson/orm/AbstractSQLConfigJoinCountTest.java
@@ -12,13 +12,12 @@
12
import java.util.List;
13
import java.util.Map;
14
15
-import static org.junit.Assert.assertEquals;
16
import static org.junit.Assert.assertTrue;
17
-import static org.junit.Assert.fail;
18
19
/**
20
- * 复现 issue #824:PostgreSQL + HEAD(count 分页) + JOIN 时,
21
- * LEFT JOIN 子查询 SELECT 只含副表关联键,缺 ON 引用的主表字段,PG 报 column not found。
+ * 复现 issue #824:多表 JOIN + HEAD(count 分页) 子查询字段缺失。
+ * - PostgreSQL:LEFT JOIN 子查询回退 SELECT *(main 已修复原报告场景,此处作回归)
+ * - MySQL:子查询只选自身关联键,缺被其它 ON 引用的字段,仍会报 Unknown column(本次修复)
22
*/
23
public class AbstractSQLConfigJoinCountTest {
24
private static final String MAIN_TABLE = "Inventory";
0 commit comments