The SET CURRENT DEFAULT TRANSFORM GROUP statement changes the value of the CURRENT DEFAULT TRANSFORM GROUP special register. This statement is not under transaction control.
Invocation
This statement can be embedded in an application program or issued through the use of dynamic SQL statements. It is an executable statement that can be dynamically prepared.
Authorization
No authorization is required to execute this statement.
Syntax
.-CURRENT-. >>-SET--+---------+--DEFAULT TRANSFORM GROUP--------------------> .- = --. >----+------+---group-name-------------------------------------><
Description
The name must be an SQL identifier, up to 18 characters in length (SQLSTATE 42815). No validation that the group-name is defined for any structured type is made when the special register is set. Only when a structured type is specifically referenced is the definition of the named transform group checked for validity.
Rules
Notes
Examples
Example 1: Set the default transform group to MYSTRUCT1. The TO SQL and FROM SQL functions defined in the MYSTRUCT1 transform group will be used for exchanging user-defined structured type variables with the current host program.
SET CURRENT DEFAULT TRANSFORM GROUP = MYSTRUCT1