Scalable Database Server, HiRDB Version 8 UAP Development Guide

[Contents][Index][Back][Next]

5.1 Using abstract data types and user-defined functions

This section describes writing UAPs that access tables with abstract data types and UAPs that have user-defined functions.

Organization of this section
(1) Embedded variable data types
(2) Literal data types

(1) Embedded variable data types

Note

An embedded variable cannot be used if the ROW data type is specified in a function argument.

(2) Literal data types

When literals are used in function arguments, the literals must match the actual argument data types of the function used. For example, if the data type of a function argument is SMALLINT, and an integer literal is specified, the literal does not match the data type. If another function has the same name, the same number of arguments, and an argument with the integer type, that function may be used instead.

Literals cannot be used in function arguments that have one of the following data types specified: