Elffuss BraidHub

kikocis/java-driver public

JAVA-688 : QueryBuilder doesn't serialize raw strings
Changeset03e44ead8f45ae9246951aca9465aeaa39c388589f5debf3d8c6ffaacb3d84a7
AuthorKevin Gallardo <kevin.gallardo@datastax.com> · 2015-05-26 10:18 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-06-22 15:55 +02:00
Parentsc49543efbccf

Browse the files at this changeset

3 files changed

modified changelog/README.md +1 −0
@@ -9,6 +9,7 @@
99 - [bug] DowngradingConsistencyRetryPolicy ignores write timeouts (JAVA-737)
1010 - [bug] Forbid bind marker in QueryBuilder add/append/prepend (JAVA-736)
1111 - [bug] Prevent QueryBuilder.quote() from applying duplicate double quotes (JAVA-712)
12+- [bug] Prevent QueryBuilder from trying to serialize raw string (JAVA-688)
1213
1314 Merged from 2.0.10_fixes branch:
1415
modified driver-core/src/main/java/com/datastax/driver/core/querybuilder/Utils.java +3 −0
@@ -63,6 +63,9 @@
6363 if (value == QueryBuilder.bindMarker() || value instanceof FCall || value instanceof CName)
6464 return null;
6565
66+ if (value instanceof RawString)
67+ return null;
68+
6669 // We also don't serialize fixed size number types. The reason is that if we do it, we will
6770 // force a particular size (4 bytes for ints, ...) and for the query builder, we don't want
6871 // 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 @@
1818 import java.math.BigDecimal;
1919 import java.math.BigInteger;
2020 import java.net.InetAddress;
21+import java.nio.ByteBuffer;
2122 import java.util.*;
2223
2324 import org.testng.annotations.Test;