You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have already found the real cause, it seems.
When you are using java.util.Map as the result type, MyBatis calls ResultSet#getColumnClassName() to determine the Java type of the column.
And the driver determines the result based on the column value of the first row which clearly is a flawed logic and causes the problem you are experiencing.
MyBatis version
3.5.14
Database vendor and version
sqlite 3.45.0
sqlite-jdbc 3.46.1.0
Test case or example project
example project: https://github.com/sailingsky/sqlite-test.git
Steps to reproduce
there are two records in table test:
run post request: https://localhost:8083/test/maps
Expected result
Actual result
the second record's id value is wrong. the related issue had been submit to sqlite-jdbc: xerial/sqlite-jdbc#1177 . FYI
The text was updated successfully, but these errors were encountered: