This section explains how to register an opaque data type.
For more information on how to register an opaque type and grant the associated privileges, see the IBM Informix: User-Defined Routines and Data Types Developer's Guide.
Use the CREATE OPAQUE TYPE statement to register an opaque data type in a database. For more information, see Determining Internal Representation. You can assign privileges to the opaque type with the GRANT USAGE ON TYPE statement. Type privileges for user-defined types (including opaque types) are stored in the sysxtdtypeauth system catalog table. By default, Usage privilege is granted to the person who registered the user-defined type. For more information on the syntax of the GRANT statement, see the IBM Informix: Guide to SQL Syntax.
To have the database server able to locate the opaque-type support functions, you must register them with the following actions:
For more information, see Registering a C UDR.
For more information, see Privileges for the UDR.
For more information, see The UDR Language.
Use the CREATE CAST statement to register the input, output, receive, send, import, export, importbin, and exportbin support functions as cast functions in the syscasts system catalog table. The input, receive, import, and importbin support functions must be registered as implicit casts. The output, send, export, and exportbin support functions must be registered as explicit casts. For more information, see Support Functions as Casts.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]