-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
环境信息
系统: Windows 10
JDK: 1.8.0_17
数据库: postgresql-12
APIJSON: 5.2.0
APIJSON-framework: 5.2.0
项目:https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONDemo-Druid
问题描述
在使用临时表进行多表关联查询,执行如下sql时,查询条件的顺序会颠倒,导致查询报错。
{
"[]": {
"Comment": {
"name$": "%a%",
"content$": "%a%",
"@combine": "name$,content$",
"@from@": {
"from": "Comment",
"join": "&/User/id@",
"Comment": {},
"User": {
"id@": "/Comment/userId",
"sex": 1, // 这个条件会和全局条件相调换
"@column": "name,sex"
}
}
}
},
"@explain": true
}