Skip to content

Conversation

Piszmog
Copy link

@Piszmog Piszmog commented Apr 23, 2025

When a java primitive is nullable, call setNull and do not try to pass a nullable parameter into a non-nullable JDBC method.

Fixes: #31

Details

  • Added a field called PrimitiveType to ktType
  • Added a function called ktPrimitiveType to return the primitive types (as found in java.sql.Types)
  • When creating the set method, if it is null and is a primitive type, perform a null check on the arugment

Appendix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nullable primitive columns cannot be compiled
1 participant