Local_schema_name

SQL

FUNCTION Local_schema_name() RETURNS CHAR(31);


Od verze

8.1a

Popis

This function returns the name of the application, that houses the running procedure. This function is used for diagnostic tools in complex applications.

The result of the Local_schema_name function may differ from the Current_application function result, if this function is used in a procedure called from another application.



Příklad

The APL1 application contains a procedure that calls the PROC2 procedure from the APL2 application:

...
CALL APL2.PROC2(...)

If the PROC2 procedure executes functions for getting the name of the application, the Curent_application function will return APL1, while Local_schema_name will return APL2.



Návratová hodnota

Returns the application name as a string.

Viz