Contents Index ALTER EVENT statement ALTER INDEX statement

ASA SQL Reference
  SQL Statements

ALTER FUNCTION statement


Description 

Use this statement to modify a function. You must include the entire new function in the ALTER FUNCTION statement.

Syntax 1 

ALTER FUNCTION [ owner.]function-name
function-definition

function-definition:
CREATE FUNCTION syntax following the name

Syntax 2 

ALTER FUNCTION [ owner.]function-name SET HIDDEN

Usage 

Syntax 1    The ALTER FUNCTION statement is identical in syntax to the CREATE FUNCTION statement except for the first word. Either version of the CREATE FUNCTION statement can be altered.

Existing permissions on the function are maintained, and do not have to be reassigned. If a DROP FUNCTION and CREATE FUNCTION were carried out, execute permissions would have to be reassigned.

Syntax 2    You can use SET HIDDEN to scramble the definition of the associated function and cause it to become unreadable. The function can be unloaded and reloaded into other databases.

This setting is irreversible. If you will need the original source again, you must maintain it outside the database.

If SET HIDDEN is used, debugging using the stored procedure debugger will not show the function definition, nor will it be available through procedure profiling.

Permissions 

Must be the owner of the function or be DBA.

Side effects 

Automatic commit.

See also 

CREATE FUNCTION statement

Hiding the contents of procedures, functions, triggers and views

Standards and compatibility 

Contents Index ALTER EVENT statement ALTER INDEX statement