GetQueryBandPairs are two overloaded table functions. One requires the query band string to be passed in; the other uses internal calls to retrieve the query band.
REPLACE FUNCTION SYSLIB.GetQueryBandPairs (
SearchType SMALLINT
) RETURNS TABLE (
QBName VARCHAR(129) CHARACTER SET UNICODE,
QBValue VARCHAR(257) CHARACTER SET UNICODE
)
...
;
REPLACE FUNCTION SYSLIB.GetQueryBandPairs ( QueryBandIn TD_ANYTYPE, SearchType SMALLINT ) RETURNS TABLE ( QBName VARCHAR(129) CHARACTER SET UNICODE, QBValue VARCHAR(257) CHARACTER SET UNICODE ) ... ;
Syntax Elements
- SearchType
- Search type:
- 0 = Return the name-value pairs in both transaction and session query bands are returned.
If the same name occurs in both the transaction and the session query bands, the value for the transaction query band is returned.
- 1 = Return only the name-value pairs in the transaction query band.
- 2 = Return only the name-value pairs in the session query band.
- 3 = Return only the name-value pairs in the profile query band.
- 0 = Return the name-value pairs in both transaction and session query bands are returned.
- QueryBandIn
- Query band string.
- QBName
- Name of the query band.
- QBValue
- Value of the query band.