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 Driver does not properly implement wasNull #8674

Closed
escabe opened this issue Nov 23, 2018 · 1 comment
Closed

JDBC Driver does not properly implement wasNull #8674

escabe opened this issue Nov 23, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@escabe
Copy link

escabe commented Nov 23, 2018

OrientDB Version: 3.0.3

Java Version: 1.8.0_121-b13

OS: Windows 10

Expected behavior

When having executed a query and having obtained a ResultSet rs, I should normally be able to:

while(rs.next() {
  string val = rs.getString(colnum);
  if  (rs.wasNull()) {
    // Do something special in case string was NULL
  } else {
    // Assume val is not NULL
  }
}

I should not have to also check for val==null.

Actual behavior

wasNull() in OrientDB JDBC driver simply always returns false.

@luigidellaquila luigidellaquila self-assigned this Nov 23, 2018
luigidellaquila added a commit that referenced this issue Nov 23, 2018
@luigidellaquila
Copy link
Member

Hi @escabe

I just pushed a fix, now it should work fine.
It will be released with v 3.0.12

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 3.0.12 milestone Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants