You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Michael Brohl (Jira)" <ji...@apache.org> on 2022/07/21 21:35:00 UTC

[jira] [Commented] (OFBIZ-12671) Entity SQL Processor "where" issue

    [ https://issues.apache.org/jira/browse/OFBIZ-12671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17569694#comment-17569694 ] 

Michael Brohl commented on OFBIZ-12671:
---------------------------------------

Hi [~iwolf] ,

why do you put ofbiz. before the table? it should work without.

Have you tried
{code:java}
SELECT * FROM CONTACT_MECH WHERE INFO_STRING = 'ofbiztest@example.com' {code}
(using single quotes)?

> Entity SQL Processor "where" issue
> ----------------------------------
>
>                 Key: OFBIZ-12671
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12671
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: webtools
>    Affects Versions: Upcoming Branch
>            Reporter: Ingo Wolfmayr
>            Priority: Major
>
> The entity sql processor in webtools fails with:
> {code:java}
> SELECT * FROM ofbiz.CONTACT_MECH WHERE INFO_STRING = "ofbiztest@example.com"{code}
> results in
> {code:java}
> SQL Exception while executing the following:SELECT * FROM ofbiz.CONTACT_MECH WHERE INFO_STRING = "ofbiztest@example.com" (Column 'ofbiztest@example.com' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'ofbiztest@example.com' is not a column in the target table.){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)