SET DIST VARIABLE 语法用于设置系统变量
SetDistVariable ::=
'SET' 'DIST' 'VARIABLE' (proxyPropertyName '=' proxyPropertyValue | 'transaction_type' '=' transactionType | 'agent_plugins_enable' '=' agentPluginsEnable)
proxyPropertyName ::=
identifier
proxyPropertyValue ::=
literal
transactionType ::=
string
agentPluginsEnable ::=
boolean
proxy_property_name 为 PROXY 的属性配置,需使用下划线命名
transaction_type 为当前连接的事务类型, 支持 LOCAL、XA、BASE
agent_plugins_enable 为 agent 插件的启用状态,默认值 FALSE
Proxy 属性配置SET DIST VARIABLE sql_show = true;
SET DIST VARIABLE transaction_type = “XA”;
agent 插件启用状态SET DIST VARIABLE agent_plugins_enabled = TRUE;
SET、DIST、VARIABLE
