Creating function templates
The federated server recognizes a data source function when there is a mapping between the data source function and a counterpart function at the federated database. You can create a function template to act as the counterpart when no counterpart exists.
Before you begin
The privileges held by the authorization ID of the statement
must include at least one of the following:
- SYSADM or DBADM authority
- IMPICIT_SCHEMA authority on the databases, if the implicit or explicit schema name of the function does not exist
- CREATEIN privilege on the schema, if the schema name of the function exists
About this task
Restrictions
If
the data source function has input parameters:
- The database counterpart function must have the same number of input parameters that the data source function has.
- The data types of the input parameters for the database counterpart function must be compatible with the corresponding data types of the input parameters for data source function. The data type cannot be LONG VARCHAR, LONG VARGRAPHIC, or a user-defined type.
If the data source function has no input parameters, the database counterpart function cannot have any input parameters.