Changes: Query builder: use predicate functions to get ownership when possible
authorAdrien Bustany <adrien.bustany@nokia.com>
Fri, 8 Jul 2011 08:51:58 +0000 (11:51 +0300)
committerMathias Hasselmann <mathias@openismus.com>
Fri, 15 Jul 2011 11:37:28 +0000 (13:37 +0200)
commit11dc4382694feb255e3b82774f6d5f4d777b1dc6
tree12e6cfc7dd24be4fb62490e6db0969e5e17d2a8b
parent280856f0ff890678dd0481113bf0b0eefb3dfcdf
Changes: Query builder: use predicate functions to get ownership when possible

RevBy: cocos (MR#254)
Details:
On multi details, the query builder would use a subselect to fetch the graph of
the statement defining ownership in every case. This commit checks if ownership
is defined by the last statement in the property chain, in this case we can use
extended predicate function syntax to fetch the graph of the statement.
src/dao/scalarquerybuilder.cpp