You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <tu...@ws.apache.org> on 2006/12/05 19:34:23 UTC

[jira] Resolved: (TUSCANY-957) DAS generates invalid INSERT statement when no properties are set on the new DO

     [ http://issues.apache.org/jira/browse/TUSCANY-957?page=all ]

Brent Daniel resolved TUSCANY-957.
----------------------------------

    Resolution: Fixed

Fixed in 482731

> DAS generates invalid INSERT statement when no properties are set on the new DO
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-957
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-957
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java DAS RDB
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>         Assigned To: Brent Daniel
>             Fix For: Java-Mx
>
>
> If a new DO is created but no properties are set then the DAS generates an invalid INSERT statement that looks something like this:
>     "insert into COMPANY( values ("
> The following test case (added to /das/src/test/java/org/apache/tuscany/das/rdb/test/GeneratedId.java) illustrates this bug:
>     /**
>      * Test insert into row with generated ID and no attributes set
>      */
>     public void testInsert5() throws Exception {
>         DAS das = DAS.FACTORY.createDAS(getConfig("CompanyConfig.xml"), getConnection());
>         Command select = das.getCommand("all companies");
>         DataObject root = select.executeQuery();
>         root.createDataObject("COMPANY");
>         das.applyChanges(root);
>         // Verify insert                 
>         root = select.executeQuery();
>         assertEquals(4, root.getList("COMPANY").size());
>     }   

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org