@@ -3543,13 +3543,13 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base
35433543 // cannot reuse method
35443544 int daysIntoCE = getDaysIntoCE (decryptedValue , baseSSType );
35453545
3546- return DDC .convertTemporalToObject (jdbcType , baseSSType , cal , daysIntoCE , 0 , 0 );
3546+ return DDC .convertTemporalToObject (con , jdbcType , baseSSType , cal , daysIntoCE , 0 , 0 );
35473547
35483548 case TIME :
35493549 long localNanosSinceMidnight = readNanosSinceMidnightAE (decryptedValue , baseTypeInfo .getScale (),
35503550 baseSSType );
35513551
3552- return DDC .convertTemporalToObject (jdbcType , SSType .TIME , cal , 0 , localNanosSinceMidnight ,
3552+ return DDC .convertTemporalToObject (con , jdbcType , SSType .TIME , cal , 0 , localNanosSinceMidnight ,
35533553 baseTypeInfo .getScale ());
35543554
35553555 case DATETIME2 :
@@ -3570,7 +3570,7 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base
35703570 int daysIntoCE2 = getDaysIntoCE (datePortion , baseSSType );
35713571
35723572 // Convert the DATETIME2 value to the desired Java type.
3573- return DDC .convertTemporalToObject (jdbcType , SSType .DATETIME2 , cal , daysIntoCE2 ,
3573+ return DDC .convertTemporalToObject (con , jdbcType , SSType .DATETIME2 , cal , daysIntoCE2 ,
35743574 localNanosSinceMidnight2 , baseTypeInfo .getScale ());
35753575
35763576 case SMALLDATETIME :
@@ -3582,7 +3582,7 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base
35823582 // SQL smalldatetime has less precision. It stores 2 bytes
35833583 // for the days since SQL Base Date and 2 bytes for minutes
35843584 // after midnight.
3585- return DDC .convertTemporalToObject (jdbcType , SSType .DATETIME , cal ,
3585+ return DDC .convertTemporalToObject (con , jdbcType , SSType .DATETIME , cal ,
35863586 Util .readUnsignedShort (decryptedValue , 0 ),
35873587 Util .readUnsignedShort (decryptedValue , 2 ) * 60L * 1000L , 0 );
35883588
@@ -3597,7 +3597,7 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base
35973597 // SQL datetime is 4 bytes for days since SQL Base Date
35983598 // (January 1, 1900 00:00:00 GMT) and 4 bytes for
35993599 // the number of three hundredths (1/300) of a second since midnight.
3600- return DDC .convertTemporalToObject (jdbcType , SSType .DATETIME , cal , Util .readInt (decryptedValue , 0 ),
3600+ return DDC .convertTemporalToObject (con , jdbcType , SSType .DATETIME , cal , Util .readInt (decryptedValue , 0 ),
36013601 ticksSinceMidnight , 0 );
36023602
36033603 case DATETIMEOFFSET :
@@ -3616,7 +3616,7 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base
36163616
36173617 int localMinutesOffset = ByteBuffer .wrap (offsetPortion2 ).order (ByteOrder .LITTLE_ENDIAN ).getShort ();
36183618
3619- return DDC .convertTemporalToObject (jdbcType , SSType .DATETIMEOFFSET ,
3619+ return DDC .convertTemporalToObject (con , jdbcType , SSType .DATETIMEOFFSET ,
36203620 new GregorianCalendar (new SimpleTimeZone (localMinutesOffset * 60 * 1000 , "" ), Locale .US ),
36213621 daysIntoCE3 , localNanosSinceMidnight3 , baseTypeInfo .getScale ());
36223622
0 commit comments