phoenix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maryann...@apache.org
Subject [34/35] 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
Date Fri, 28 Oct 2016 21:34:27 GMT
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/calcite
Commit: 13ae3f38c11b62f52cacff9ee029955f2bef3b8b
Parents: 10880a3
Author: James Taylor <jamestaylor@apache.org>
Authored: Fri Oct 28 08:59:13 2016 -0700
Committer: James Taylor <jamestaylor@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 = "澴粖蟤य褻酃岤豦팑薰鄩脼ժ끦碉碉碉碉碉碉";
+            String value = "澴粖蟤य褻酃岤豦팑薰鄩脼ժ끦碉碉碉碉碉";
             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))");


Mime
View raw message