Closed abraluve closed 9 months ago
You can turn off the cast via WithExplicitParameterTypes
in options.
And there's no MaxLength
for parameters. The other side of comparison is not always a table column.
That works thanks.
I meant this setting
Again. That's column, not parameter.
Hi,
I noticed bug where
CAST(xx AS VARCHAR(32765))
is not respecting MaxLength attribute/fluent-api.Problem should be here https://github.com/FirebirdSQL/NETProvider/blob/cf461dcdb5e0eb4e016cf5343baa913b2e8dd1a8/src/FirebirdSql.EntityFrameworkCore.Firebird/Storage/Internal/FbSqlGenerationHelper.cs#L40
as there is constant value that sets it.
SQL query:
Input parameter has length 10 characters. If CAST is removed query works. Maybe some workaround to turn off unnecessary casts? I wonder why is it there anyway as my input parameter_placeholder is
string?
andColumnWithLength10
is defined asvarchar(10)
.