16.20 - Usage Notes - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

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

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.