This project is read-only.
1
Vote

Hubble.Core.Query.Optimize.OptimizeArgument.cs的GetOrderByCanBeOptimized方法在NVarChar类型数据处理出错

description


if (field.DataType == DataType.Varchar ||
                    field.DataType == DataType.NChar ||
                    field.DataType == DataType.Data ||
                    field.DataType == DataType.Char ||
                    field.DataType == DataType.NChar)
                {
                    return false;
                }
field.DataType == DataType.NChar 出现两次,第二个应该改为
field.DataType == DataType.NVarChar

错误现象是NVarChar类型的字段作为排序字段时会出现异常,查询失败!

comments

ccstormlee wrote Jul 18, 2013 at 11:06 AM

nothing