Skip to content

Commit

Permalink
Fix commit for 0001879 to allow drop index to work on separate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellpettit committed Aug 9, 2018
1 parent a49c1df commit 3ce5ef4
Showing 1 changed file with 2 additions and 16 deletions.
Expand Up @@ -265,23 +265,9 @@ protected String getNativeDefaultValue(Column column) {
@Override
protected void writeColumnAutoIncrementStmt(Table table, Column column, StringBuilder ddl) {
ddl.append("IDENTITY (1,1) ");
}
}

@Override
public void writeExternalIndexDropStmt(Table table, IIndex index, StringBuilder ddl) {
String prefix = Table.getFullyQualifiedTablePrefix(table.getCatalog(), table.getSchema(),
delimitedIdentifierModeOn? databaseInfo.getDelimiterToken() : "", databaseInfo.getCatalogSeparator(),
databaseInfo.getSchemaSeparator());
ddl.append(prefix);
ddl.append("sp_executesql N'DROP INDEX ");
printIdentifier(getIndexName(index), ddl);
ddl.append(" ON ");
ddl.append(getDelimitedIdentifier(table.getName()));
ddl.append("'");
printEndOfStatement(ddl);
}

@Override
@Override
protected void writeExternalForeignKeyDropStmt(Table table, ForeignKey foreignKey,
StringBuilder ddl) {
String constraintName = getForeignKeyName(table, foreignKey);
Expand Down

0 comments on commit 3ce5ef4

Please sign in to comment.