1
Vote

bug

description

你好 ,类 OracleMetadataReader 的方法
public IList<HasMany> DetermineHasManyRelationships(Table table)
修改需要修改成C.TABLE_NAME = :TABLE_NAME AND R.OWNER=:OWNER_NAME
修改后的SQL
SELECT R.TABLE_NAME, COL.COLUMN_NAME
FROM ALL_CONSTRAINTS C, ALL_CONSTRAINTS R, ALL_CONS_COLUMNS COL
WHERE C.TABLE_NAME = :TABLE_NAME AND R.OWNER=:OWNER_NAME
AND C.CONSTRAINT_NAME = R.R_CONSTRAINT_NAME
AND R.CONSTRAINT_NAME = COL.CONSTRAINT_NAME
AND R.TABLE_NAME = COL.TABLE_NAME
AND R.OWNER = COL.OWNER

comments