v.19.15Improvement
Support Numeric Values for Enums Directly in IN Section
Support numeric values for Enums directly in IN section. #6766 #6941 (dimarub2000)Why it matters
This feature allows users to specify Enum values as their underlying numeric representations directly in theIN section. It resolves the limitation of needing to use Enum labels as strings, thus enabling more flexible and concise queries, especially when numeric IDs are more convenient or available.How to use it
Users can now write queries with Enum columns by directly using their numeric values inside theIN clause. For example: SELECT * FROM table WHERE enum_column IN (1, 2, 3), where 1, 2, 3 are valid numeric values of the Enum.