fix name starts with query
This commit is contained in:
parent
cbd076d106
commit
242fb3c770
|
@ -2097,14 +2097,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrWhiteSpace(query.NameStartsWith))
|
if (!string.IsNullOrWhiteSpace(query.NameStartsWith))
|
||||||
{
|
{
|
||||||
if (_config.Configuration.SchemaVersion >= 66)
|
whereClauses.Add("SortName like @NameStartsWith");
|
||||||
{
|
|
||||||
whereClauses.Add("CleanName like @NameStartsWith");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
whereClauses.Add("Name like @NameStartsWith");
|
|
||||||
}
|
|
||||||
cmd.Parameters.Add(cmd, "@NameStartsWith", DbType.String).Value = query.NameStartsWith + "%";
|
cmd.Parameters.Add(cmd, "@NameStartsWith", DbType.String).Value = query.NameStartsWith + "%";
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrWhiteSpace(query.NameStartsWithOrGreater))
|
if (!string.IsNullOrWhiteSpace(query.NameStartsWithOrGreater))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user