Skip to content

Commit

Permalink
Use length instead of toString
Browse files Browse the repository at this point in the history
  • Loading branch information
machavan committed Jan 23, 2025
1 parent 29f0de8 commit 6adfc61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ private String readLineEscapeDelimiters() throws SQLServerException {
if (c == -1 && quoteCount % 2 != 0) { // stream ended, but we are within quotes -- data problem
throw new SQLServerException(SQLServerException.getErrString("R_InvalidCSVQuotes"), null, 0, null);
}
if ((c == -1) && sb.toString().isEmpty()) { // keep semantics of readLine() by returning a null when there is no more data
if ((c == -1) && (sb.length() == 0)) { // keep semantics of readLine() by returning a null when there is no more data
return null;
}
} catch (IOException e) {
Expand Down

0 comments on commit 6adfc61

Please sign in to comment.