Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于兼容达梦DM8的问题请教 #797

Open
gxmanito opened this issue Feb 25, 2025 · 2 comments
Open

关于兼容达梦DM8的问题请教 #797

gxmanito opened this issue Feb 25, 2025 · 2 comments

Comments

@gxmanito
Copy link

gxmanito commented Feb 25, 2025

Description

APIJSON:7.4.0
数据库:达梦DM8
JDK:1.8

你好,请教一下,关于apijson和达梦DM8的整合,目前来看文档没具体介绍到;

方案:是否把isOracle改为true,AbstractSQLConfig.DEFAULT_DATABASE=ORACLE,连接池改一下即可,还有其他注意事项吗?

Image

Image

Image

@gxmanito
Copy link
Author

参数
{
"@Explain": true,
"[]": {
"join": "&/StationExtension/stationCode@",
"Station": {
"stationEnabled": 1,
"@column": "stationCode,stationName"
},
"StationExtension": {
"stationCode@": "/Station/stationCode",
"@column": "stationCode"
}
}
}

[执行语句1]
SELECT *
FROM (SELECT "Station".*, ROWNUM "RN"
FROM (SELECT "Station"."station_code", "Station"."station_name", "StationExtension"."station_code"
FROM "base_station" "Station"
INNER JOIN "base_station_extension" "StationExtension"
ON "StationExtension"."station_code" = "Station"."station_code"
WHERE (("Station"."station_enabled" = 1) AND ("Station"."tenant_id" = 1001) )) "Station"
WHERE ROWNUM <= 1000)
WHERE "RN" > 0
执行失败,失败原因:
[-2112]:第9行附近出现错误:
有歧义的列名[station_code]

@TommyLemon
Copy link
Collaborator

应该是 JOIN 后两个 station_code 重名导致报错,可以给副表的 station_code 设置别名试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants