示例#1
0
 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(']');
 }
示例#2
0
 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);
 }
示例#3
0
 protected override void EscapeStringLiteral(StringBuilder builder, string literal)
 {
     SqlInjectionChecker.AppendStringEscapeSingleQuote(builder, literal);
 }