Share this page

# lrd_attr_set_literal

Sets a handle attribute using a literal string.

    LRDRET lrd_attr_set_literal( void *mpvLRDDBIHandleTarget, long mliAttrType, const char *mpcValue, int miDBErrorSeverity );

mpvLRDDBIHandleTarget | A pointer to the target LRDDBI handle.
mliAttrType | One of the LRD attributes: LRD_ATTR_ORACLE_xxx.
mpcValue | A literal string constant representing the attribute's value.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_attr_set_literal function sets an attribute of an LRDDBI handle. This function specifies the attribute using a literal string, enabling it to include NULL characters.

You must explicitly allocate a handle prior to calling this function using lrd_handle_allocate. This function is only supported for Oracle 8.0 and higher.

For more details refer to the header file lrd.h in the include directory.

## Return Values

See LRD Return Values.

## Parameterization

Parameterization is not applicable to this function.

## Example

In the following example, the lrd_attr_set_literal function assigns the value "scott" to the USERNAME attribute during session 1.

    lrd_attr_set_literal (Ses1, LRD_ATTR_ORACLE_USERNAME, "scott", 0);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: