Fix null parental rating comparison (#9618)

pull/9650/head
Brad Beattie 1 year ago committed by GitHub
parent 922e04dbf3
commit ba5e51700e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2379,7 +2379,7 @@ namespace Emby.Server.Implementations.Data
else
{
builder.Append(
@"(SELECT CASE WHEN InheritedParentalRatingValue=0
@"(SELECT CASE WHEN COALESCE(InheritedParentalRatingValue, 0)=0
THEN 0
ELSE 10.0 / (1.0 + ABS(InheritedParentalRatingValue - @InheritedParentalRatingValue))
END)");

Loading…
Cancel
Save