16.20 - Determining Which Constructor is Invoked - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Administration
Programming Reference
Publication ID
B035-1210-162K
Language
English (United States)

Teradata Database uses the rules in the following table to select a UDT constructor:

IF the NEW expression specifies a constructor with an argument list that is … THEN …
empty If a constructor method that takes no parameters and has the same name as the UDT:
  • Exists in the SYSUDTLIB database, Teradata Database selects that constructor method.
  • Does not exist in the SYSUDTLIB database, Teradata Database selects the constructor function that is automatically generated when the structured UDT is created.
not empty Teradata Database selects the constructor method in SYSUDTLIB with a parameter list that matches the arguments passed to the constructor in the NEW expression.