You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org> on 2009/05/25 23:39:45 UTC

[jira] Created: (DERBY-4248) convert checkConstraint.sql to JUnit

convert checkConstraint.sql to JUnit
------------------------------------

                 Key: DERBY-4248
                 URL: https://issues.apache.org/jira/browse/DERBY-4248
             Project: Derby
          Issue Type: Test
          Components: Test
    Affects Versions: 10.4.3.0
            Reporter: Eranda Sooriyabandara
            Assignee: Eranda Sooriyabandara
            Priority: Minor
             Fix For: 10.6.0.0


Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733064#action_12733064 ] 

Bryan Pendleton commented on DERBY-4248:
----------------------------------------

Hi Eranda, I don't see an updated diff file. Maybe the attachment did not go through?

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713133#action_12713133 ] 

Bryan Pendleton commented on DERBY-4248:
----------------------------------------

Hi Eranda, thanks for attaching the patch proposal.

Your diff file also includes the AlterTableTest changes from DERBY-4187. 
It would be better to keep these separate. Can you construct a separate
source tree on your system containing only the CheckConstraint test changes
and provide a diff with only those contents? Thanks!


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.java

Hi,
Here I add the patch with this, which produce by the DERBY-2151
ijToJUnit tool with some basic editing.


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.diff

Hi Bryan,
Compilation was successful and here I attaching the patch. Working
further on it.
Thanks


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: AlterTableTest.diff

Hi Bryan,
Here I attaching the complete patch file.
Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: AlterTableTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734451#action_12734451 ] 

Eranda Sooriyabandara commented on DERBY-4248:
----------------------------------------------

Hi Bryan,
Thanks for submitting the patch. I am happy to about the update.
I am closing this issue.
Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714766#action_12714766 ] 

Eranda Sooriyabandara commented on DERBY-4248:
----------------------------------------------

Hi Bryan,
I am sorry I have mistaken and I attached a file belong to the
DERBY-4187 file here.
Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: AlterTableTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733047#action_12733047 ] 

Eranda Sooriyabandara commented on DERBY-4248:
----------------------------------------------

Hi Bryan,
I compared CheckContraintTest with the checkConstraint.sql and
I didn't find an error in this test and successfully ran in my platform.
Here is my final patch file attaching with this.
Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment:     (was: CheckConstraintTest.diff)

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment:     (was: AlterTableTest.diff)

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Closed: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara closed DERBY-4248.
----------------------------------------


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.diff

Hi Bryan,
I commented that part which consider as a new bug and make the test
complete. With the knowledge of working in AlterTableTest.
Here I send patch file with this.
Now what can we do? Can we proceed with the bug?
Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.diff

Hi Bryan,
Sorry for the mistake. Here I attach the patch. But I am not pretty
sure about the test contain all the tests which were in
checkConstraint.sql.Please make a comment on that.
Thanks


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Comment: was deleted

(was: Hi Bryan,
I am sorry I have mistaken and I attached a file belong to the
DERBY-4187 file here.
Thanks
Eranda
)

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: AlterTableTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722893#action_12722893 ] 

Bryan Pendleton commented on DERBY-4248:
----------------------------------------

Hi Eranda, I will have a look at your latest version of CheckConstraintTest as soon as I can.


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722955#action_12722955 ] 

Bryan Pendleton commented on DERBY-4248:
----------------------------------------

I successfully built and ran CheckConstraintTest, and the test passed.

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Resolved: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Pendleton resolved DERBY-4248.
------------------------------------

    Resolution: Fixed

The patch looks good to me. I ran a complete set of regression tests, and
submitted the patch to the trunk as revision 796893.

Eranda, please update your subversion client and check that the patch
appears to have been applied correctly, and that the test still runs
correctly for you, and then please close this issue at your convenience.

Thanks very much for this contribution to Derby!


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-4248:
---------------------------------

    Issue Type: Improvement  (was: Test)

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.diff

Hi Bryan,I break the test into five separate methods,

testNotAllowedInCheckConstraint()
testCheckConstriant()
testPositionalUpdate()
testBuiltInFunctions()
testJira2989()

Here I am attaching the patch file with this, Are there more to do with
coding if any please let me know.
Now I think to compare checkConstraint.out and the CheckConstraintTest and
make a complete patch file.

Thanks
Eranda


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Commented: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Bryan Pendleton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713998#action_12713998 ] 

Bryan Pendleton commented on DERBY-4248:
----------------------------------------

Hi Eranda,

The new patch looks good, it seems like the new test is taking shape nicely.

I think that the conversion tool did not handle this section of the script very well:

prepare p1 as 'insert into t1 values 1';
prepare p2 as 'update t1 set c1 = 3 where c1 = 4';
prepare p3 as 'select * from t1';
-- the insert and update should fail, select should succeed
execute p1;
execute p2;
execute p3;

In the new JUnit test, this seemed to show up as:

+        pSt = prepareStatement(
+            "insert into t1 values 1");
+        
+        pSt = prepareStatement(
+            "update t1 set c1 = 3 where c1 = 4");
+        
+        pSt = prepareStatement(
+            "select * from t1");
+        
+        // the insert and update should fail, select should succeed
+        
+        assertStatementError("23505", pSt);
+        
+        assertStatementError("23505", pSt);
+        
+        rs = pSt.executeQuery();

I think that we should not be using the same variable for these 3 prepared statements,
instead we need to have 3 separate PreparedStatement objects.


> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Attachment: CheckConstraintTest.diff




> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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


[jira] Updated: (DERBY-4248) convert checkConstraint.sql to JUnit

Posted by "Eranda Sooriyabandara (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eranda Sooriyabandara updated DERBY-4248:
-----------------------------------------

    Comment: was deleted

(was: Hi Bryan,
Here I attaching the complete patch file.
Thanks
Eranda
)

> convert checkConstraint.sql to JUnit
> ------------------------------------
>
>                 Key: DERBY-4248
>                 URL: https://issues.apache.org/jira/browse/DERBY-4248
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.4.3.0
>            Reporter: Eranda Sooriyabandara
>            Assignee: Eranda Sooriyabandara
>            Priority: Minor
>             Fix For: 10.6.0.0
>
>         Attachments: AlterTableTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.diff, CheckConstraintTest.java
>
>
> Converting CheckConstraint.sql to JUnit under supervision of Bryan Pendleton.

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