Skip to content
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

jdbc: Support ResultSet.wasNull #179

Closed
nicktorwald opened this issue May 6, 2019 · 0 comments
Closed

jdbc: Support ResultSet.wasNull #179

nicktorwald opened this issue May 6, 2019 · 0 comments
Labels
Milestone

Comments

@nicktorwald
Copy link

nicktorwald commented May 6, 2019

The method wasNull can be called to determine if the last value retrieved was a
SQL NULL in the database.

When the column value in the database is SQL NULL, it may be returned to the Java application as null, 0, or false, depending on the type of the column value. Column values that map to Java Object types are returned as a Java null; those that map to numeric types are returned as 0; those that map to a Java boolean are returned as false. Therefore, it may be necessary to call the wasNull method to determine whether the last value retrieved was a SQL NULL.

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

No branches or pull requests

1 participant