提交 97c98cf0 编写于 作者: A Andrew Khitrin

Table name for constraint query


Former-commit-id: 73222c03
上级 5b312f9f
......@@ -529,12 +529,12 @@ public class OracleSchema extends OracleGlobalObject implements DBSSchema, DBPRe
" col.CONSTRAINT_NAME cn,col.POSITION p,col.COLUMN_NAME cname,\r\n" +
" ROW_NUMBER() OVER (PARTITION BY col.CONSTRAINT_NAME ORDER BY col.POSITION) AS curr,\r\n" +
" ROW_NUMBER() OVER (PARTITION BY col.CONSTRAINT_NAME ORDER BY col.POSITION) -1 AS prev\r\n" +
" FROM DBA_CONS_COLUMNS col \r\n" +
" FROM "+ OracleUtils.getAdminAllViewPrefix(session.getProgressMonitor(), getDataSource(), "CONS_COLUMNS") +" col \r\n" +
" WHERE col.OWNER =? AND col.TABLE_NAME = ? AND col.CONSTRAINT_NAME = c.CONSTRAINT_NAME \r\n" +
" ) GROUP BY cn CONNECT BY prev = PRIOR curr AND cn = PRIOR cn START WITH curr = 1 \r\n" +
" ) COLUMN_NAMES_NUMS\r\n" +
"FROM\r\n" +
" ALL_CONSTRAINTS c\r\n" +
" " + OracleUtils.getAdminAllViewPrefix(session.getProgressMonitor(), getDataSource(), "CONSTRAINTS") + " c\r\n" +
"WHERE\r\n" +
" c.CONSTRAINT_TYPE <> 'R'\r\n" +
" AND c.OWNER = ?\r\n" +
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册