Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Test inserting the enum differently
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Jan 15, 2024
1 parent 6fb41f5 commit d841cf6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.sql.Types;
import java.time.Instant;
import java.util.Properties;
import javax.inject.Inject;
Expand Down Expand Up @@ -115,7 +116,7 @@ ON CONFLICT (received_message_id) DO UPDATE SET receiver = EXCLUDED.receiver, se
deliveryStatusString = deliveryStatus.toString();
}

statement.setString(7, deliveryStatusString);
statement.setObject(7, deliveryStatusString, Types.OTHER);

statement.executeUpdate();
}
Expand Down

0 comments on commit d841cf6

Please sign in to comment.