Open
Description
About the Bug...
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of MyBatis.
-
I have confirmed this bug reproduces without 3rd party extensions (e.g. mybatis-plus).
Database Version
All
JDBC Driver Version
All
Issue Description
The first enum in Java has the ordinal value 0.
Instead of mapping the value 0 to the first enum the EnumOrdinalTypeHandler maps to null.
Code lines 50 and 59 check if ordinal == null and then return null. That’s definitely wrong.
About your report...
-
I did not use images 🖼️ for showing text information (code, error, etc.).
-
I checked the Preview and my report looks awesome! 👍