msiAddSelectFieldToGenQuery ( msParam_t *  select,
msParam_t *  function,
msParam_t *  queryInput,
ruleExecInfo_t *  rei 
)
Description:
Sets a select field in a genQueryInp_t
Module:
core
Author:
Antoine de Torcy
Date:
2009-11-28
Note:
This microservice sets a select field in a genQueryInp_t, from two parameters. One is an iCAT attribute index given without its 'COL_' prefix. The second one is the optional SQL operator. A new genQueryInp_t is created if queryInput is NULL. Followed with msiExecGenQuery, msiAddSelectFieldToGenQuery allows to take the results of other microservices to build and execute queries within a rule.
Example Usage:
See clients/icommands/test/rules3.0/
Parameters:
[in] select - Required - A STR_MS_T with the select field.
[in] function - Optional - A STR_MS_T with the function. Valid values are [MIN|MAX|SUM|AVG|COUNT]
[in,out] queryInput - Optional - A GenQueryInp_MS_T.
[in,out] rei - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation.
Session Variables Used:
none
Session Variables Modified:
none
iCAT Attributes Used:
none
iCAT Attributes Modified:
none
Side Effect:
none
Returns:
integer
Return values:
0 on success
Precondition:
none
Postcondition:
none
See also:
none

Definition at line 734 of file nre.genQueryMS.c.

Generated on Tue May 14 16:53:39 2013 for iRODS Documentation by  doxygen 1.6.3