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

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
qqu1556127655717.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

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.