Beispiel #1
0
 protected virtual SqlStatement VisitDropProcedure(DropProcedureStatement statement)
 {
     return(new DropProcedureStatement(statement.ProcedureName)
     {
         IfExists = statement.IfExists
     });
 }
        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);
        }
        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);
        }
Beispiel #4
0
 protected override SqlStatement VisitDropProcedure(DropProcedureStatement statement)
 {
     return(base.VisitDropProcedure(statement));
 }
Beispiel #5
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);
 }