db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4318) convert inbetween.sql to JUNIT
Date Fri, 31 Jul 2009 21:06:14 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737705#action_12737705
] 

Bryan Pendleton commented on DERBY-4318:
----------------------------------------

Hi Eranda, Rick provided his patch in a message to the derby-dev list. Here is his message:
http://mail-archives.apache.org/mod_mbox/db-derby-dev/200907.mbox/%3C4A6DC058.7050302@sun.com%3E


And here is the diff that was attached to the message, to help with diagnosis:
Index: java/testing/org/apache/derbyTesting/functionTests/tests/lang/inbetween.sql
===================================================================
--- java/testing/org/apache/derbyTesting/functionTests/tests/lang/inbetween.sql	(revision
798152)
+++ java/testing/org/apache/derbyTesting/functionTests/tests/lang/inbetween.sql	(working copy)
@@ -23,7 +23,7 @@
 -- compatibility with dynamic parameters 
 set isolation to rr;
 
-CREATE FUNCTION ConsistencyChecker() RETURNS VARCHAR(128)
+CREATE FUNCTION ConsistencyChecker() RETURNS VARCHAR(20000)
 EXTERNAL NAME 'org.apache.derbyTesting.functionTests.util.T_ConsistencyChecker.runConsistencyChecker'
 LANGUAGE JAVA PARAMETER STYLE JAVA;
 autocommit off;
@@ -147,6 +147,7 @@
 delete from s where i between 3 and 5;
 select * from s;
 
+MAXIMUMDISPLAYWIDTH 2000;
 -- check consistency of scans, etc.
 values ConsistencyChecker();
 
Index: java/testing/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java
===================================================================
--- java/testing/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java	(revision
798152)
+++ java/testing/org/apache/derbyTesting/functionTests/util/T_ConsistencyChecker.java	(working
copy)
@@ -504,6 +504,8 @@
         {
             debugBuf.append("No outstanding dependencies.\n");
         }
+        
+        debugBuf.append( " " + dm.dumpDependencies() );
 
         return debugBuf.toString();
     }


> convert inbetween.sql to JUNIT
> ------------------------------
>
>                 Key: DERBY-4318
>                 URL: https://issues.apache.org/jira/browse/DERBY-4318
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>         Attachments: inbetween.junit, InbetweenTest.diff, InbetweenTest.diff
>
>
> conversion of inbetween.sql to JUNIT

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message