Skip to content

Commit

Permalink
Merge pull request #232 from pierresouchay/bugfixes
Browse files Browse the repository at this point in the history
Fixed missing this -> wrong semantics
  • Loading branch information
AfsanehR-zz authored Apr 17, 2017
2 parents 7d65ebb + e178fca commit 1bc07b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/com/microsoft/sqlserver/jdbc/SQLServerBlob.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public InputStream getBinaryStream() throws SQLException {
return (InputStream) activeStreams.get(0);
}
else {
if (value == null) {
throw new SQLServerException("Unexpected Error: blob value is null while all streams are closed.", null);
}
return getBinaryStreamInternal(0, value.length);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public DBCoercion(Class type) {
public DBCoercion(Class type,
int[] tempflags) {
name = type.toString();
type = type;
this.type = type;
for (int i = 0; i < tempflags.length; i++)
flags.set(tempflags[i]);
}
Expand Down

0 comments on commit 1bc07b2

Please sign in to comment.