Skip to content

fix: Nullable Primitives #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

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