mirror of https://github.com/apache/nifi.git
NIFI-10057: Add support for SQL Server's DATETIMEOFFSET type to ExecuteSQL processors
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #6080.
This commit is contained in:
parent
4c2fc216ab
commit
639ab328c9
|
@ -526,6 +526,7 @@ public class ResultSetRecordSet implements RecordSet, Closeable {
|
|||
case Types.TIMESTAMP_WITH_TIMEZONE:
|
||||
case -101: // Oracle's TIMESTAMP WITH TIME ZONE
|
||||
case -102: // Oracle's TIMESTAMP WITH LOCAL TIME ZONE
|
||||
case -155: // SQL Server's DATETIMEOFFSET
|
||||
return getRecordFieldType(TIMESTAMP, useLogicalTypes);
|
||||
}
|
||||
|
||||
|
|
|
@ -635,6 +635,7 @@ public class JdbcCommon {
|
|||
case TIMESTAMP_WITH_TIMEZONE:
|
||||
case -101: // Oracle's TIMESTAMP WITH TIME ZONE
|
||||
case -102: // Oracle's TIMESTAMP WITH LOCAL TIME ZONE
|
||||
case -155: // SQL Server's DATETIMEOFFSET
|
||||
addNullableField(builder, columnName,
|
||||
u -> options.useLogicalTypes
|
||||
? u.type(LogicalTypes.timestampMillis().addToSchema(SchemaBuilder.builder().longType()))
|
||||
|
|
Loading…
Reference in New Issue