Added new case to 'SETTING_GENERIC_VARIABLE' quote surrounding for queries starting with '('

pull/3451/head
Javier Jaramago Fernández 5 years ago
parent a0020a43f2
commit 3a122aaf3c

@ -2308,6 +2308,9 @@ bool MySQL_Session::handler_again___status_SETTING_GENERIC_VARIABLE(int *_rc, co
q=(char *)"SET %s=%s";
if (strncasecmp(var_value,(char *)"REPLACE",7)==0)
q=(char *)"SET %s=%s";
if (var_value[0] && var_value[0]=='(') {
q=(char *)"SET %s=%s";
}
}
} else {
// NOTE: for now, only SET SESSION is supported

Loading…
Cancel
Save