Note
This variable is available starting with V4.3.5 BP5.
Description
SQL_TRANSPILER specifies whether to enable the SQL Transpiler feature. If this feature is enabled, PL/SQL functions that meet the conditions will be automatically rewritten into SQL expressions without requiring 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 mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL 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 mode) or theinformation_schema.SESSION_VARIABLESview (MySQL 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 at the session level.
obclient> SET GLOBAL SQL_TRANSPILER='ON';Disable the SQL Transpiler feature at the global level.
obclient> SET GLOBAL SQL_TRANSPILER='OFF';