15.10 - SQL SECURITY DEFINER - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Content Type
Programming Reference
Publication ID
B035-1144-151K
Language
English (United States)
Last Update
2018-06-05

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.