[xwiki-users] basic questions on queries
Please, could you tell me what the "," means in this query string? Thanks! $query = ", BaseObject as obj where..." Ricardo -- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On 09/25/2010 01:33 PM, [Ricardo Rodriguez] eBioTIC. wrote:
Please, could you tell me what the "," means in this query string? Thanks!
$query = ", BaseObject as obj where..."
Ricardo
$xwiki.searchDocuments is a "safe" search method, which only returns document names. As such, the first part of the query is fixed: "select doc.space, doc.name from XWikiDocument as doc " The first argument of the searchDocuments method is then appended to this stub. Thus, the comma separates the two "from" components, resulting in: "select doc.space, doc.name from XWikiDocument as doc , Base Object as obj where..." -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks, Sergiu. Sergiu Dumitriu wrote:
$xwiki.searchDocuments is a "safe" search method, which only returns document names. As such, the first part of the query is fixed:
"select doc.space, doc.name from XWikiDocument as doc "
The first argument of the searchDocuments method is then appended to this stub. Thus, the comma separates the two "from" components, resulting in:
"select doc.space, doc.name from XWikiDocument as doc , Base Object as obj where..."
Right now, the only place where I could find this information is the code of *Class XWiki*. Please, is this correct? Thanks! Ricardo -- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
participants (2)
-
[Ricardo Rodriguez] eBioTIC. -
Sergiu Dumitriu