Exemplo n.º 1
0
 internal override SqlExpression VisitFunctionCall(SqlFunctionCall fc)
 {
     if (fc.Name == "LEN")
     {
         bool changed;
         fc.Arguments[0] = ConvertToMax(fc.Arguments[0], out changed);
         if (fc.Arguments[0].SqlType.IsLargeType)
         {
             this.annotations.Add(fc, new SqlServerCompatibilityAnnotation(
                                      Strings.LenOfTextOrNTextNotSupported(fc.SourceExpression), SqlProvider.ProviderMode.Sql2000));
         }
     }
     return(base.VisitFunctionCall(fc));
 }