protected override bool CompileTruncate() { truncatestatement st = stmt as truncatestatement; s.Append(String.Format("DELETE * FROM {0}", QuoteTablename(st.TargetTable))); return(true); }
protected override bool CompileTruncate() { truncatestatement st = stmt as truncatestatement; /* can no longer use the default implementation with TRUNCATE TABLE because this is not allowed when * declarative referential integrity is in use */ s.Append(String.Format("DELETE FROM {0}", QuoteTablename(st.TargetTable))); return(true); }