kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 03e44ead8f45ae9246951aca9465aeaa39c388589f5debf3d8c6ffaacb3d84a7 |
|---|---|
| Author | Kevin Gallardo <kevin.gallardo@datastax.com> · 2015-05-26 10:18 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-06-22 15:55 +02:00 |
| Parents | c49543efbccf |
3 files changed
modified changelog/README.md +1 −0
| @@ -9,6 +9,7 @@ | ||
| 9 | 9 | - [bug] DowngradingConsistencyRetryPolicy ignores write timeouts (JAVA-737) |
| 10 | 10 | - [bug] Forbid bind marker in QueryBuilder add/append/prepend (JAVA-736) |
| 11 | 11 | - [bug] Prevent QueryBuilder.quote() from applying duplicate double quotes (JAVA-712) |
| 12 | +- [bug] Prevent QueryBuilder from trying to serialize raw string (JAVA-688) | |
| 12 | 13 | |
| 13 | 14 | Merged from 2.0.10_fixes branch: |
| 14 | 15 |
modified driver-core/src/main/java/com/datastax/driver/core/querybuilder/Utils.java +3 −0
| @@ -63,6 +63,9 @@ | ||
| 63 | 63 | if (value == QueryBuilder.bindMarker() || value instanceof FCall || value instanceof CName) |
| 64 | 64 | return null; |
| 65 | 65 | |
| 66 | + if (value instanceof RawString) | |
| 67 | + return null; | |
| 68 | + | |
| 66 | 69 | // We also don't serialize fixed size number types. The reason is that if we do it, we will |
| 67 | 70 | // force a particular size (4 bytes for ints, ...) and for the query builder, we don't want |
| 68 | 71 | // users to have to bother with that. |
modified driver-core/src/test/java/com/datastax/driver/core/querybuilder/QueryBuilderTest.java +1 −0
| @@ -18,6 +18,7 @@ | ||
| 18 | 18 | import java.math.BigDecimal; |
| 19 | 19 | import java.math.BigInteger; |
| 20 | 20 | import java.net.InetAddress; |
| 21 | +import java.nio.ByteBuffer; | |
| 21 | 22 | import java.util.*; |
| 22 | 23 | |
| 23 | 24 | import org.testng.annotations.Test; |