You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2018/05/04 02:22:20 UTC

[13/13] polygene-java git commit: There is a limit on the VARCHAR size of about 800 characters, and I am uncertain how these are counted as we have UTF-8 encoding. 200 characters should be enough for identities.

There is a limit on the VARCHAR size of about 800 characters, and I am uncertain how these are counted as we have UTF-8 encoding. 200 characters should be enough for identities.


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/42bc67f2
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/42bc67f2
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/42bc67f2

Branch: refs/heads/develop
Commit: 42bc67f2c2f3dce4a46cc00b098192857dcebe21
Parents: adc7bef
Author: niclas <ni...@hedhman.org>
Authored: Thu May 3 08:34:46 2018 +0800
Committer: niclas <ni...@hedhman.org>
Committed: Thu May 3 08:34:46 2018 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/polygene/entitystore/sql/SqlType.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/42bc67f2/extensions/entitystore-sql/src/main/java/org/apache/polygene/entitystore/sql/SqlType.java
----------------------------------------------------------------------
diff --git a/extensions/entitystore-sql/src/main/java/org/apache/polygene/entitystore/sql/SqlType.java b/extensions/entitystore-sql/src/main/java/org/apache/polygene/entitystore/sql/SqlType.java
index d072afd..6113a02 100644
--- a/extensions/entitystore-sql/src/main/java/org/apache/polygene/entitystore/sql/SqlType.java
+++ b/extensions/entitystore-sql/src/main/java/org/apache/polygene/entitystore/sql/SqlType.java
@@ -181,7 +181,7 @@ class SqlType
         {
             if( reference )
             {
-                return SQLDataType.VARCHAR.length(1000).nullable(false);
+                return SQLDataType.VARCHAR.length(200).nullable(false);
             }
             else
             {