Example #1
0
 protected virtual SqlStatement VisitDropFunction(DropFunctionStatement statement)
 {
     return(new DropFunctionStatement(statement.FunctionName)
     {
         IfExists = statement.IfExists
     });
 }
Example #2
0
        public static void DropFunction_IfExists()
        {
            var statement = new DropFunctionStatement(ObjectName.Parse("APP.func1"), true);

            var sql = statement.ToString();
            var expected = "DROP FUNCTION IF EXISTS APP.func1";

            Assert.AreEqual(expected, sql);
        }
        public static void DropFunction_IfExists()
        {
            var statement = new DropFunctionStatement(ObjectName.Parse("APP.func1"), true);

            var sql      = statement.ToString();
            var expected = "DROP FUNCTION IF EXISTS APP.func1";

            Assert.AreEqual(expected, sql);
        }
Example #4
0
 protected virtual SqlStatement VisitDropFunction(DropFunctionStatement statement)
 {
     return new DropFunctionStatement(statement.FunctionName) {
         IfExists = statement.IfExists
     };
 }