kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | a24f48a9b779658706e5248721462fe3246e20740c4226313d17952fd786c37b |
|---|---|
| Author | Alexandre Dutra <alexandre.dutra@datastax.com> · 2015-06-24 16:08 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-07-20 19:50 +02:00 |
| Parents | 7462e7d19397 |
2 files changed
modified changelog/README.md +1 −0
| @@ -3,6 +3,7 @@ | ||
| 3 | 3 | ### 2.2.0-rc2 (in progress) |
| 4 | 4 | |
| 5 | 5 | - [improvement] Rename DateWithoutTime to LocalDate (JAVA-810) |
| 6 | +- [bug] TypeCodec.getDataTypeFor() does not handle LocalDate instances. (JAVA-818) | |
| 6 | 7 | |
| 7 | 8 | Merged from 2.1 branch: |
| 8 | 9 |
modified driver-core/src/main/java/com/datastax/driver/core/TypeCodec.java +3 −0
| @@ -202,6 +202,9 @@ | ||
| 202 | 202 | if (value instanceof Date) |
| 203 | 203 | return DataType.timestamp(); |
| 204 | 204 | |
| 205 | + if (value instanceof LocalDate) | |
| 206 | + return DataType.date(); | |
| 207 | + | |
| 205 | 208 | if (value instanceof UUID) |
| 206 | 209 | return DataType.uuid(); |
| 207 | 210 |