public override void AppendName(string name, char?prefix = null) { this.Builder.Append('['); if (prefix.HasValue) { this.Builder.Append(prefix.Value); } SqlInjectionChecker.AppendStringEscapeClosingSquare(this.Builder, name); this.Builder.Append(']'); }
public bool VisitExprFunctionName(ExprFunctionName exprFunctionName, IExpr?parent) { if (exprFunctionName.BuiltIn) { SqlInjectionChecker.AssertValidBuildInFunctionName(exprFunctionName.Name); this.Builder.Append(exprFunctionName.Name); } else { this.AppendName(exprFunctionName.Name); } return(true); }
protected override void EscapeStringLiteral(StringBuilder builder, string literal) { SqlInjectionChecker.AppendStringEscapeSingleQuote(builder, literal); }