polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [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.
Date Fri, 04 May 2018 02:22:20 GMT
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 <niclas@hedhman.org>
Authored: Thu May 3 08:34:46 2018 +0800
Committer: niclas <niclas@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
             {


Mime
View raw message