If more than one registered UDR has the same routine name, the routine is overloaded. Routine overloading enables several routines to share a name and each of the routines to handle arguments of different data types. When an SQL statement includes a call to an overloaded routine, the query parser uses routine resolution to determine which of the overloaded routines best handles the data type of the arguments in the routine call of the SQL statement.
To perform routine resolution, the query parser looks up information in the system catalogs based on the routine signature. The routine signature contains the following information:
The database server combines this information to create an identifier that uniquely identifies the UDR. This routine identifier is in the procid column of the sysprocedures system catalog.
For a detailed description of the steps involved in routine resolution, see the IBM Informix: User-Defined Routines and Data Types Developer's Guide.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]