提交 3ceba72e 编写于 作者: S serge-rider

Oracle: drop primary key fix

Former-commit-id: 92249632
上级 df7e7e48
......@@ -92,12 +92,14 @@ public class OracleConstraintManager extends SQLConstraintManager<OracleTableCon
@Override
protected String getDropConstraintPattern(OracleTableConstraint constraint)
{
String clause;
String clause = "CONSTRAINT"; //$NON-NLS-1$;
/*
if (constraint.getConstraintType() == DBSEntityConstraintType.PRIMARY_KEY) {
clause = "PRIMARY KEY"; //$NON-NLS-1$
} else {
clause = "CONSTRAINT"; //$NON-NLS-1$
}
*/
return "ALTER TABLE " + PATTERN_ITEM_TABLE +" DROP " + clause + " " + PATTERN_ITEM_CONSTRAINT; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册