protected virtual SqlStatement VisitDropFunction(DropFunctionStatement statement) { return(new DropFunctionStatement(statement.FunctionName) { IfExists = statement.IfExists }); }
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); }
protected virtual SqlStatement VisitDropFunction(DropFunctionStatement statement) { return new DropFunctionStatement(statement.FunctionName) { IfExists = statement.IfExists }; }