Add parens around all BinaryExpressions to make sure that errors such U4-8026 do not happen

This commit is contained in:
Asbjørn Riis-Knudsen
2016-02-25 12:20:58 +01:00
parent def276de01
commit e8f84cfec0

View File

@@ -152,7 +152,7 @@ namespace Umbraco.Core.Persistence.Querying
case "COALESCE":
return string.Format("{0}({1},{2})", operand, left, right);
default:
return left + " " + operand + " " + right;
return "(" + left + " " + operand + " " + right + ")";
}
}