Exemplo n.º 1
0
        protected override bool CompileTruncate()
        {
            truncatestatement st = stmt as truncatestatement;

            s.Append(String.Format("DELETE * FROM {0}", QuoteTablename(st.TargetTable)));
            return(true);
        }
Exemplo n.º 2
0
        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);
        }