You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2016/10/28 15:59:19 UTC

phoenix git commit: PHOENIX-3396 Valid Multi-byte strings whose total byte size is greater than the max char limit cannot be inserted into VARCHAR fields in the PK

Repository: phoenix
Updated Branches:
  refs/heads/master 10880a37c -> 13ae3f38c


PHOENIX-3396 Valid Multi-byte strings whose total byte size is greater than the max char limit cannot be inserted into VARCHAR fields in the PK


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/13ae3f38
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/13ae3f38
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/13ae3f38

Branch: refs/heads/master
Commit: 13ae3f38c11b62f52cacff9ee029955f2bef3b8b
Parents: 10880a3
Author: James Taylor <ja...@apache.org>
Authored: Fri Oct 28 08:59:13 2016 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Fri Oct 28 08:59:13 2016 -0700

----------------------------------------------------------------------
 .../src/test/java/org/apache/phoenix/schema/MutationTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/13ae3f38/phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java b/phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java
index ce2e22f..290110b 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java
@@ -83,7 +83,7 @@ public class MutationTest extends BaseConnectionlessQueryTest {
             conn.setAutoCommit(false);
             String bvalue = "01234567890123456789";
             assertEquals(20,PVarchar.INSTANCE.toBytes(bvalue).length);
-            String value = "\u6fb4\u7c96\u87e4\u092f\u893b\u9143\u5ca4\u8c66\ud311\u85b0\u9129\u813c\u056a\ub066\u7889\u7889\u7889\u7889\u7889\u7889";
+            String value = "\u6fb4\u7c96\u87e4\u092f\u893b\u9143\u5ca4\u8c66\ud311\u85b0\u9129\u813c\u056a\ub066\u7889\u7889\u7889\u7889\u7889";
             assertTrue(value.length() <= maxLength2 && value.getBytes().length > maxLength2);
             conn.createStatement().execute("CREATE TABLE t1 (k1 char(" + maxLength1 + ") not null, k2 varchar(" + maxLength2 + "), "
                     + "v1 varchar(" + maxLength2 + "), v2 varbinary(" + maxLength2 + "), v3 binary(" + maxLength2 + "), constraint pk primary key (k1, k2))");