You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Christian Geisert (JIRA)" <ji...@apache.org> on 2008/12/16 16:14:45 UTC

[jira] Assigned: (OFBIZ-1952) delegator.removeByAnd(entityName) fails with sql syntax error

     [ https://issues.apache.org/jira/browse/OFBIZ-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Geisert reassigned OFBIZ-1952:
----------------------------------------

    Assignee: Christian Geisert

> delegator.removeByAnd(entityName) fails with sql syntax error
> -------------------------------------------------------------
>
>                 Key: OFBIZ-1952
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1952
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Adam Heath
>            Assignee: Christian Geisert
>            Priority: Minor
>         Attachments: GenericDAO.patch
>
>
> delegator.removeByAnd(entityName) calls delegator.removeByAnd(entityName, (Map) null).  This eventually calls GenericDAO.deleteByCondition, with the condition being an EntityFieldMap with an emptyMap.  In this case, the EntityCondition.makeWhereString returns an empty string, so doing:
> sql += "WHERE" + condition.makeWhereString(...)
> fails.

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