You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/04/23 20:46:21 UTC
[jira] [Updated] (DELTASPIKE-581) CountQueryPostProcessor assumes a
where clause
[ https://issues.apache.org/jira/browse/DELTASPIKE-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek updated DELTASPIKE-581:
----------------------------------------
Assignee: Thomas Hug
> CountQueryPostProcessor assumes a where clause
> ----------------------------------------------
>
> Key: DELTASPIKE-581
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-581
> Project: DeltaSpike
> Issue Type: Bug
> Components: Data-Module
> Affects Versions: 0.7
> Environment: openejb-core 4.6.1-SNAPSHOT
> Deltaspike 0.7-SNAPSHOT
> Reporter: Karl Kildén
> Assignee: Thomas Hug
>
> CountQueryPostProcessor assumes there's a where clause when it rewrites to count query.
> private String rewrite()
> {
> return "select count(" + (select != null ? select : entityName) + ") " + from + where;
> }
> here where can easily be null causing a query like this:
> select count( fact ) from Fact factnull
--
This message was sent by Atlassian JIRA
(v6.2#6252)