mirror of https://github.com/apache/cassandra
Fix ReversedType(DateType) mapping to native protocol
patch by Ben Hood; reviewed by Aleksey Yeschenko for CASSANDRA-7576
This commit is contained in:
parent
8754809585
commit
ff211a4c44
|
|
@ -1,4 +1,5 @@
|
|||
2.0.10
|
||||
* Fix ReversedType(DateType) mapping to native protocol (CASSANDRA-7576)
|
||||
* (Windows) force range-based repair to non-sequential mode (CASSANDRA-7541)
|
||||
* Fix range merging when DES scores are zero (CASSANDRA-7535)
|
||||
* Warn when SSL certificates have expired (CASSANDRA-7528)
|
||||
|
|
|
|||
|
|
@ -146,8 +146,9 @@ public enum DataType implements OptionCodec.Codecable<DataType>
|
|||
// shouldn't have to care about it.
|
||||
if (type instanceof ReversedType)
|
||||
type = ((ReversedType)type).baseType;
|
||||
|
||||
// For compatibility sake, we still return DateType as the timestamp type in resultSet metadata (#5723)
|
||||
else if (type instanceof DateType)
|
||||
if (type instanceof DateType)
|
||||
type = TimestampType.instance;
|
||||
|
||||
DataType dt = dataTypeMap.get(type);
|
||||
|
|
|
|||
Loading…
Reference in New Issue