15.10 - SQL SECURITY DEFINER - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Teradata Database
Release Number
December 2015
Content Type
Programming Reference
Publication ID
English (United States)
Last Update

Teradata Database checks the privileges of the creator and owner of the function for objects it references when it is invoked.

If either the immediate owner or the creator do not have the privileges required to access the database objects specified within the UDF definition at the time the function is invoked, Teradata Database returns an error to the requestor.

If the owner of the function does not exist at the time privileges are checked, Teradata Database returns an error to the requestor.

SQL SECURITY DEFINER is the default for an SQL UDF and is the only valid entry.

You can only specify this clause if you also specify LANGUAGE SQL.