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.10
Published
July 2021
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
fsi1592016213432.ditamap
dita:ditavalPath
fsi1592016213432.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

Vantage 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, Vantage selects that constructor method.
  • Does not exist in the SYSUDTLIB database, Vantage selects the constructor function that is automatically generated when the structured UDT is created.
not empty Vantage selects the constructor method in SYSUDTLIB with a parameter list that matches the arguments passed to the constructor in the NEW expression.