public static void DropProcedure_IfExists()
        {
            var statement = new DropProcedureStatement(ObjectName.Parse("proc2"), true);

            var sql = statement.ToString();
            var expected = "DROP PROCEDURE IF EXISTS proc2";

            Assert.AreEqual(expected, sql);
        }
Exemple #2
0
 protected virtual SqlStatement VisitDropProcedure(DropProcedureStatement statement)
 {
     return new DropProcedureStatement(statement.ProcedureName) {
         IfExists = statement.IfExists
     };
 }
 protected override SqlStatement VisitDropProcedure(DropProcedureStatement statement)
 {
     return base.VisitDropProcedure(statement);
 }