The SET DIST VARIABLE
syntax is used to set system variables.
SetDistVariable ::=
'SET' 'DIST' 'VARIABLE' (proxyPropertyName '=' proxyPropertyValue | 'transaction_type' '=' transactionType | 'agent_plugins_enable' '=' agentPluginsEnable)
proxyPropertyName ::=
identifier
proxyPropertyValue ::=
literal
transactionType ::=
string
agentPluginsEnable ::=
boolean
proxy_property_name
is one of properties configuration of PROXY
, name is split by underscore
transaction_type
is use to set transaction types for current connection, supports LOCAL
, XA
, BASE
agent_plugins_enable
is use to set the agent
plugins enable status, the default value is FALSE
system_log_level
is the system log level, only affects the log printing of PROXY
, the default value is INFO
Proxy
SET DIST VARIABLE sql_show = true;
SET DIST VARIABLE transaction_type = “XA”;
agent
plugin enable statusSET DIST VARIABLE agent_plugins_enabled = TRUE;
SET
, DIST
, VARIABLE