Skip to content

Commit

Permalink
Merge pull request #714 from daneshk/master
Browse files Browse the repository at this point in the history
Add a comment tagging the issue for future reference
  • Loading branch information
daneshk authored Jun 14, 2024
2 parents fa5eeaf + aca8a4c commit bfd5c7c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ public int setSQLValueParam(Connection connection, PreparedStatement preparedSta
boolean returnType) throws DataError, SQLException {
try {
if (object == null) {
// If the value is null, we need to set the correct SQL type for the null value
// https://github.com/ballerina-platform/ballerina-library/issues/6562
preparedStatement.setNull(index, Types.NULL);
return Types.NULL;
} else if (object instanceof BString) {
Expand Down

0 comments on commit bfd5c7c

Please sign in to comment.