aaberg / sql2o

sql2o is a small library, which makes it easy to convert the result of your sql-statements into objects. No resultset hacking required. Kind of like an orm, but without the sql-generation capabilities. Supports named parameters.
http://sql2o.org
MIT License
1.14k stars 229 forks source link

#281 verify that value type matches field type #352

Closed asolntsev closed 1 year ago

asolntsev commented 2 years ago

... when setting a value to a field via sun.misc.Unsafe

@aaberg @dimzon this change avoids crashing JVM when setting a value of incompatible type.