File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -301,13 +301,21 @@ I/O write timeout. The value must be a decimal number with an unit suffix ( *"ms
301
301
302
302
##### System Variables
303
303
304
- All other parameters are interpreted as system variables:
305
- * ` autocommit ` : ` "SET autocommit=<value>" `
306
- * [ ` time_zone ` ] ( https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html ) : ` "SET time_zone=<value>" `
307
- * [ ` tx_isolation ` ] ( https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_tx_isolation ) : ` "SET tx_isolation=<value>" `
308
- * ` param ` : ` "SET <param>=<value>" `
304
+ Any other parameters are interpreted as system variables:
305
+ * ` <boolean_var>=<value> ` : ` SET <boolean_var>=<value> `
306
+ * ` <enum_var>=<value> ` : ` SET <enum_var>=<value> `
307
+ * ` <string_var>=%27<value>%27 ` : ` SET <string_var>='<value>' `
308
+
309
+ Rules:
310
+ * The values for string variables must be quoted with '
311
+ * The values must also be [ url.QueryEscape] ( http://golang.org/pkg/net/url/#QueryEscape ) 'ed!
312
+ (which implies values of string variables must be wrapped with ` %27 ` )
313
+
314
+ Examples:
315
+ * ` autocommit=1 ` : ` SET autocommit=0 `
316
+ * [ ` time_zone=%27Europe%2FParis%27 ` ] ( https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html ) : ` SET time_zone='Europe/Paris' `
317
+ * [ ` tx_isolation=%27REPEATABLE-READ%27 ` ] ( https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_tx_isolation ) : ` SET tx_isolation=REPEATABLE-READ `
309
318
310
- * The values must be [ url.QueryEscape] ( http://golang.org/pkg/net/url/#QueryEscape ) 'ed!*
311
319
312
320
#### Examples
313
321
```
You can’t perform that action at this time.
0 commit comments