Skip to content

Commit a39c32f

Browse files
Expect OracleType.TIMESTAMP_WITH_TIME_ZONE
1 parent 3db01cb commit a39c32f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/test/java/oracle/r2dbc/impl/OracleReadableMetadataImplTest.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,14 @@ public void testDateTimeTypes() {
211211
// Expect TIMESTAMP WITH TIME ZONE and OffsetDateTime to map. Expect
212212
// precision to be the maximum String length returned by
213213
// OffsetDateTime.toString(). Expect scale to be the number of decimal
214-
// digits in the fractional seconds component.
215-
System.out.println("SKIPPING TIMESTAMP WITH TIME ZONE TEST");
216-
/*
217-
TODO: Uncomment when this fix is released:
218-
https://github.com/r2dbc/r2dbc-spi/commit/a86562421a312df2d8a3ae187553bf6c2b291aad
214+
// digits in the fractional seconds component. Expect the
215+
// OracleType.TIMESTAMP_WITH_TIME_ZONE which has a different type code
216+
// than JDBCType.TIMESTAMP_WITH_TIMEZONE
219217
verifyColumnMetadata(
220218
connection, "TIMESTAMP(3) WITH TIME ZONE",
221-
JDBCType.TIMESTAMP_WITH_TIMEZONE, R2dbcType.TIMESTAMP_WITH_TIME_ZONE,
219+
OracleType.TIMESTAMP_WITH_TIME_ZONE, R2dbcType.TIMESTAMP_WITH_TIME_ZONE,
222220
35, 3, OffsetDateTime.class,
223221
OffsetDateTime.parse("1977-06-16T09:00:00.123+01:23"));
224-
*
225-
*/
226222

227223
// Expect TIMESTAMP WITH LOCAL TIME ZONE and LocalDateTime to map.
228224
verifyColumnMetadata(

0 commit comments

Comments
 (0)