Elffuss BraidHub

kikocis/java-driver public

JAVA-818: TypeCodec.getDataTypeFor() does not handle LocalDate instances.
Changeseta24f48a9b779658706e5248721462fe3246e20740c4226313d17952fd786c37b
AuthorAlexandre Dutra <alexandre.dutra@datastax.com> · 2015-06-24 16:08 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-07-20 19:50 +02:00
Parents7462e7d19397

Browse the files at this changeset

2 files changed

modified changelog/README.md +1 −0
@@ -3,6 +3,7 @@
33 ### 2.2.0-rc2 (in progress)
44
55 - [improvement] Rename DateWithoutTime to LocalDate (JAVA-810)
6+- [bug] TypeCodec.getDataTypeFor() does not handle LocalDate instances. (JAVA-818)
67
78 Merged from 2.1 branch:
89
modified driver-core/src/main/java/com/datastax/driver/core/TypeCodec.java +3 −0
@@ -202,6 +202,9 @@
202202 if (value instanceof Date)
203203 return DataType.timestamp();
204204
205+ if (value instanceof LocalDate)
206+ return DataType.date();
207+
205208 if (value instanceof UUID)
206209 return DataType.uuid();
207210