Fix ReversedType(DateType) mapping to native protocol

patch by Ben Hood; reviewed by Aleksey Yeschenko for CASSANDRA-7576
This commit is contained in:
Aleksey Yeschenko 2014-07-22 01:42:24 +03:00
parent 8754809585
commit ff211a4c44
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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);