Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert integral value to enum value when printing Sql literal (#16692)
In new query pipeline, we preserve convert nodes around enum in expression tree and remove them on both sides when translating to server. The typeMapping for enum column expects an enum value for constant or parameter - With new pipeline, we will have parameter's value to be enum so we no longer need any additional code for conversion - For constants, there is no convert node around constant in actual tree so we are left with integral value to be printed with Enum type mapping. Hence we need to convert it to actual enum value first. Afterwards, provider can print enum literal or apply appropriate conversions
- Loading branch information