Skip to content

Commit 32a6c55

Browse files
author
mihaita.tinta
committed
fix oracle
1 parent 9d6c156 commit 32a6c55

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spring-modulith-events/spring-modulith-events-jdbc/src/main/java/org/springframework/modulith/events/jdbc/JdbcEventPublicationRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public void markFailed(UUID identifier, Instant failedDate, Throwable exception)
314314

315315
var databaseId = uuidToDatabase(identifier);
316316
var reason = serializer.serialize(exception);
317-
this.operations.update(sqlStatementInsertFailed, databaseId, failedDate,
317+
this.operations.update(sqlStatementInsertFailed, databaseId, Timestamp.from(failedDate),
318318
reason, exception.getClass().getName());
319319
}
320320

spring-modulith-events/spring-modulith-events-jdbc/src/main/resources/schema-oracle.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_BY_LISTENER_ID_AND_SERIALIZED_EVENT
1212
CREATE INDEX IF NOT EXISTS EVENT_PUBLICATION_BY_COMPLETION_DATE_IDX ON EVENT_PUBLICATION (COMPLETION_DATE);
1313
CREATE TABLE IF NOT EXISTS EVENT_FAILED_ATTEMPT_INFO
1414
(
15-
EVENT_ID UUID NOT NULL,
16-
FAILED_DATE TIMESTAMP(9) WITH TIME ZONE,
17-
SERIALIZED_REASON VARCHAR(4000) NOT NULL,
18-
REASON_TYPE VARCHAR(512) NOT NULL,
15+
EVENT_ID VARCHAR2(36) NOT NULL,
16+
FAILED_DATE TIMESTAMP(6) WITH TIME ZONE default SYSTIMESTAMP NOT NULL,
17+
SERIALIZED_REASON VARCHAR2(4000) NOT NULL,
18+
REASON_TYPE VARCHAR2(512) NOT NULL,
1919
CONSTRAINT FK_FAILED_EVENT_INFO_EVENT
2020
FOREIGN KEY (EVENT_ID)
2121
REFERENCES EVENT_PUBLICATION(ID)

0 commit comments

Comments
 (0)