cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evg...@apache.org
Subject svn commit: r899177 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test: java/org/apache/cayenne/access/ReturnTypesMappingTest.java resources/testmap.map.xml
Date Thu, 14 Jan 2010 12:15:16 GMT
Author: evgeny
Date: Thu Jan 14 12:15:15 2010
New Revision: 899177

URL: http://svn.apache.org/viewvc?rev=899177&view=rev
Log:
CAY-1354
Fixed Schema generation to be Derby compatible (char not longer then 254).
Fixed LONGVARCHAR test (cut length to be < 32000).

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ReturnTypesMappingTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/resources/testmap.map.xml

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ReturnTypesMappingTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ReturnTypesMappingTest.java?rev=899177&r1=899176&r2=899177&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ReturnTypesMappingTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/ReturnTypesMappingTest.java
Thu Jan 14 12:15:15 2010
@@ -482,8 +482,8 @@
         ReturnTypesMap1 test = context.newObject(ReturnTypesMap1.class);
 
         StringBuffer buffer = new StringBuffer();
-        for (int i = 0; i < 10000; i++) {
-            buffer.append("LONGVARCHAR very large string for tests!!!!\n");
+        for (int i = 0; i < 500; i++) {
+            buffer.append("LONGVARCHAR large string for tests!!!!\n");
         }
         String longvarcharValue = buffer.toString();
         test.setLongvarcharColumn(longvarcharValue);
@@ -501,8 +501,8 @@
         ReturnTypesMap1 test = context.newObject(ReturnTypesMap1.class);
 
         StringBuffer buffer = new StringBuffer();
-        for (int i = 0; i < 10000; i++) {
-            buffer.append("LONGVARCHAR very large string for tests!!!!\n");
+        for (int i = 0; i < 500; i++) {
+            buffer.append("LONGVARCHAR large string for tests!!!!\n");
         }
         String longvarcharValue = buffer.toString();
         test.setLongvarcharColumn(longvarcharValue);

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/resources/testmap.map.xml
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/resources/testmap.map.xml?rev=899177&r1=899176&r2=899177&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/resources/testmap.map.xml
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/resources/testmap.map.xml
Thu Jan 14 12:15:15 2010
@@ -239,7 +239,7 @@
 		<db-attribute name="BIGINT_COLUMN" type="BIGINT"/>
 		<db-attribute name="BIT_COLUMN" type="BIT"/>
 		<db-attribute name="BOOLEAN_COLUMN" type="BOOLEAN"/>
-		<db-attribute name="CHAR_COLUMN" type="CHAR" length="255"/>
+		<db-attribute name="CHAR_COLUMN" type="CHAR" length="254"/>
 		<db-attribute name="CLOB_COLUMN" type="CLOB"/>
 		<db-attribute name="DATE_COLUMN" type="DATE"/>
 		<db-attribute name="DECIMAL_COLUMN" type="DECIMAL" length="12" scale="5"/>



Mime
View raw message