Skip to content

Commit d82fa77

Browse files
committed
Concatenate binary data using ||
1 parent f6e9789 commit d82fa77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/EFCore.PG/Query/Internal/NpgsqlQuerySqlGenerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ protected override string GetOperator(SqlBinaryExpression e)
9090
// string type mapping. Same for full-text search's TsVector.
9191
ExpressionType.Add when
9292
e.Type == typeof(string) || e.Left.TypeMapping?.ClrType == typeof(string) || e.Right.TypeMapping?.ClrType == typeof(string) ||
93+
e.Type == typeof(BitArray) || e.Left.TypeMapping?.ClrType == typeof(BitArray) || e.Right.TypeMapping?.ClrType == typeof(BitArray) ||
9394
e.Type == typeof(NpgsqlTsVector) || e.Left.TypeMapping?.ClrType == typeof(NpgsqlTsVector) || e.Right.TypeMapping?.ClrType == typeof(NpgsqlTsVector)
9495
=> " || ",
9596
ExpressionType.And when e.Type == typeof(bool) => " AND ",

0 commit comments

Comments
 (0)