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

ASF subversion and git services commented on JENA-1153:
-------------------------------------------------------

Commit 581d2892d699e6127559fca94dd37f2fc4439df4 in jena's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=581d289 ]

Fixes for JENA-1153.


> QueryBuilder does not allow order direction to be specified
> -----------------------------------------------------------
>
>                 Key: JENA-1153
>                 URL: https://issues.apache.org/jira/browse/JENA-1153
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: QueryBuilder
>    Affects Versions: Jena 3.1.0
>            Reporter: Matthew Glubb
>            Assignee: Claude Warren
>
> Order direction cannot be specified when using the QueryBuilder. Consider the 
> following:
> {code}
> (new SelectBuilder()).addWhere("?a", "?b", 
> "?c").addOrderBy("DESC(?a)").buildString()
> {code}
> Actual:
> {code}
> SELECT  *
> WHERE
>   { ?a  ?b  ?c }
> ORDER BY ?DESC(?a)
> {code}
> Expected:
> {code}
> SELECT  *
> WHERE
>   { ?a  ?b  ?c }
> ORDER BY DESC(?a)
> {code}
> It seems the QueryBuilder assumes that only a field name will ever be passed 
> and tried to be 'helpful' by prepending a '?' if it is omitted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to