Usage Notes - Advanced SQL Engine - Teradata Database

SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
qwr1571437338192.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1147
lifecycle
previous
Product Category
Teradata Vantage™

Use this library function when it does not matter which copy of the table function participates in the current transaction and request.

Because all copies of the table function call FNC_TblFirstParticipant, each copy must check the return value to determine how to proceed.

IF the return value is … THEN …
1 this copy of the table function is the one participating in the current transaction and request.
0 another copy of the table function is the one participating in the current transaction and request.

When the call to FNC_TblFirstParticipant returns, this copy of the table function should take the following steps:

Call FNC_TblOptOut.

Return.