Parameter
|
Type
|
Description
|
INPUT
|
||
sName
|
String
|
The name of the scalar function.
|
iConstantFunc
|
int
|
Indicates whether the function has constant output.
1 - indicates that the function is a constant scalar function and is evaluated only once per query if all its arguments are literal values.
0 - indicates that the function is a variable scalar function and therefore should be evaluated once per record during the dam_isTargetRow call, regardless of the input.
|
pfScalarFunc
|
String
|
The method in the IP that is to be called to execute this scalar function.
|
iResXoType
|
int
|
The data type of the result value of the scalar function.
|
iLength
|
int
|
The length of the result value of the scalar function. Set to
DAM_NOT_SET to accept the following default values:
CHAR, BINARY: 255
WVARCHAR: 16000
VARCHAR, VARBINARY: 8000
LONGVARCHAR, LONGVARBINARY: 1000000
WLONGVARCHAR: 2000000
NUMERIC: 34
Other types: Default values as specified in OA_COLUMNS.
|
iPrecision
|
int
|
The precision of the result value of the scalar function. Set to
DAM_NOT_SET to accept the following default values:
CHAR, WCHAR, BINARY: 255
VARCHAR, WVARCHAR, VARBINARY: 8000
LONGVARCHAR, WLONGVARCHAR,
LONGVARBINARY: 1000000
NUMERIC: 32
Other types: Default values as specified in OA_COLUMNS.
|
iScale
|
int
|
Scale of the result value of the scalar function.
Set to DAM_NOT_SET to accept the following default value:
NUMERIC: 5
Other types: Default values as specified in OA_COLUMNS.
|
iNumInputParams
|
int
|
The number of arguments expected by the function.
>=0 to allow fixed argument list.
< 0 to allow variable argument list with a maximum of |args|.
|
RETURN
|
||
NONE
|