Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Piszmog wants to merge2 commits intosqlc-dev:main
base:main
Choose a base branch
Loading
fromPiszmog:nullable-numbers

Conversation

Piszmog
Copy link

@PiszmogPiszmog commentedApr 23, 2025
edited
Loading

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

Fixes:#31

Details

  • Added a field calledPrimitiveType toktType
  • Added a function calledktPrimitiveType to return the primitive types (as found injava.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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Nullable primitive columns cannot be compiled
1 participant
@Piszmog

[8]ページ先頭

©2009-2025 Movatter.jp