Merge pull request #1287 from sysown/qpr-fix

Fix validation on query_processor_regex
pull/1291/head
René Cannaò 8 years ago committed by GitHub
commit 5e49171443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1472,7 +1472,7 @@ bool MySQL_Threads_Handler::set_variable(char *name, char *value) { // this is t
}
if (!strcasecmp(name,"query_processor_regex")) {
int intv=atoi(value);
if (intv >= 0 && intv <= 1000*1000) {
if (intv >= 1 && intv <= 2) {
variables.query_processor_regex=intv;
return true;
} else {

Loading…
Cancel
Save