Closed roneigebert closed 1 year ago
Test case:
@Entity public class DataTypes { @Column long longPrimitive; @Column Long longObject; } @Test public void ensureThatReturnTheSameValuesFromDatabaseOnNumericTypes(){ final DataTypes object = new DataTypes(); object.setLongObject( null ); queries.insert( object ); final List<DataTypes> results = queries.find(); assertEquals(1, results.size()); assertNull( results.get(0).getLongObject() ); assertEquals( 0, results.get(0).getLongPrimitive() ); }
Types with this error: Long, Integer, Double and Float
Solved in version 0.5.0 https://github.com/Ibratan/kikaha-jdbi3/commit/242d33f0948784acb5b2cd79dd9a10c9f5b10ce5
Test case:
Types with this error: Long, Integer, Double and Float