// Cache schema constraints if not table specified
if(forParent==null){
constraintCache.getAllObjects(monitor,schema);
...
...
@@ -649,45 +645,41 @@ public class OracleSchema extends OracleGlobalObject implements DBSSchema, DBPRe
StringBuildersql=newStringBuilder(500);
JDBCPreparedStatementdbStat;
if(special10){
sql.append("SELECT \r\n"+
" c.TABLE_NAME,\r\n"+
" c.CONSTRAINT_NAME,\r\n"+
" c.CONSTRAINT_TYPE,\r\n"+
" c.STATUS,\r\n"+
" c.R_OWNER,\r\n"+
" c.R_CONSTRAINT_NAME,\r\n"+
" (SELECT rc.TABLE_NAME FROM "+OracleUtils.getAdminAllViewPrefix(session.getProgressMonitor(),getDataSource(),"CONSTRAINTS")+" rc WHERE rc.OWNER = c.r_OWNER AND rc.CONSTRAINT_NAME = c.R_CONSTRAINT_NAME) AS R_TABLE_NAME,\r\n"+
" c.DELETE_RULE,\r\n"+
" (\r\n"+
" SELECT LTRIM(MAX(SYS_CONNECT_BY_PATH(cname || ':' || p,',')) KEEP (DENSE_RANK LAST ORDER BY curr),',') \r\n"+