Skip to content

Commit

Permalink
CassandraResultSet.getString returns null value instead of string "null"
Browse files Browse the repository at this point in the history
  • Loading branch information
kornilova203 committed Sep 9, 2019
1 parent 37f15e8 commit 79f6ae2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
}

version '1.3.1'
version '1.3.2'

sourceCompatibility = 1.8

Expand Down
2 changes: 1 addition & 1 deletion driver/src/main/java/com/dbschema/CassandraJdbcDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) {
}

String getVersion() {
return "1.3.1";
return "1.3.2";
}

@Override
Expand Down
3 changes: 2 additions & 1 deletion driver/src/main/java/com/dbschema/CassandraResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public boolean wasNull() {
public String getString(int columnIndex) throws SQLException {
checkClosed();
if (currentRow != null) {
return String.valueOf(currentRow.getObject(columnIndex - 1));
Object object = currentRow.getObject(columnIndex - 1);
return object == null ? null : String.valueOf(object);
}
throw new SQLException("Exhausted ResultSet.");
}
Expand Down

0 comments on commit 79f6ae2

Please sign in to comment.