Note
This variable is available starting with V4.4.2 of V4.4.x.
Description
SQL_TRANSPILER specifies whether to enable the SQL Transpiler feature. When this feature is enabled, PL/SQL functions that meet the conditions are automatically rewritten into SQL expressions without user intervention.
Privilege requirements
Query variables
Global level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle-compatible mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL-compatible mode) to obtain the values of global system variables.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle-compatible mode) or theinformation_schema.SESSION_VARIABLESview (MySQL-compatible mode) to obtain the values of session system variables.
Modify variables
Global level
systenants can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Session level
systenants and all user tenants can directly modify the values of session system variables in their own tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Enum |
| Default value | OFF |
| Value range |
|
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Optional usage
Examples
Enable the SQL Transpiler feature for the session.
obclient> SET GLOBAL SQL_TRANSPILER='ON';Disable the SQL Transpiler feature for the global scope.
obclient> SET GLOBAL SQL_TRANSPILER='OFF';