Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ protected override Expression VisitExtension(Expression node)
switch (node)
{
case ValuesExpression { ValuesParameter: SqlParameterExpression valuesParameter } valuesExpression
when ParameterizedCollectionMode is ParameterizedCollectionMode.MultipleParameters:
when ParameterizedCollectionMode is ParameterizedCollectionMode.MultipleParameters
&& !valuesParameter.ShouldBeConstantized:
{
Check.DebugAssert(valuesParameter.TypeMapping is not null);
Check.DebugAssert(valuesParameter.TypeMapping.ElementTypeMapping is not null);
Expand Down Expand Up @@ -236,7 +237,8 @@ protected override SqlExpression VisitIn(InExpression inExpression, bool allowOp
switch (inExpression.ValuesParameter)
{
case SqlParameterExpression valuesParameter
when ParameterizedCollectionMode is ParameterizedCollectionMode.MultipleParameters:
when ParameterizedCollectionMode is ParameterizedCollectionMode.MultipleParameters
&& !valuesParameter.ShouldBeConstantized:
{
Check.DebugAssert(valuesParameter.TypeMapping is not null);
Check.DebugAssert(valuesParameter.TypeMapping.ElementTypeMapping is not null);
Expand Down