public override string SerializeDropIndex(SQLDropIndex dropIndex) { if (String.IsNullOrEmpty(dropIndex.Name)) throw new Exceptions.DatabaseObjectsException("IndexName has not been set."); else if (String.IsNullOrEmpty(dropIndex.TableName)) throw new Exceptions.DatabaseObjectsException("TableName has not been set."); return "DROP INDEX " + SerializeIdentifier(dropIndex.TableName) + "." + SerializeIdentifier(dropIndex.Name); }
public override string SerializeDropIndex(SQLDropIndex dropIndex) { if (String.IsNullOrEmpty(dropIndex.Name)) throw new Exceptions.DatabaseObjectsException("IndexName has not been set."); // Table name is NOT used as in other database systems - it must be a globably unique index name return "DROP INDEX " + SerializeIdentifier(dropIndex.Name); }