From 01fd5d0d0e527ed5da5d6d2dcf91f74162bb4ad1 Mon Sep 17 00:00:00 2001 From: Gleb Shchepa Date: Mon, 23 Jun 2014 19:59:15 +0400 Subject: Bug #18978946: BACKPORT TO 5.6: BUGFIX FOR 18017820 "BISON 3 BREAKS MYSQL BUILD" Backport of the fix: : Bug 18017820: BISON 3 BREAKS MYSQL BUILD : ======================================== : : The source of the reported problem is a removal of a few deprecated : things from Bison 3.x: : * YYPARSE_PARAM macro (use the %parse-param bison directive instead), : * YYLEX_PARAM macro (use %lex-param instead), : : The fix removes obsolete macro calls and introduces use of : %parse-param and %lex-param directives. --- sql/sql_parse.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/sql_parse.cc') diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index fe9f564672a..ea63d23d182 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -7359,7 +7359,7 @@ bool check_host_name(LEX_STRING *str) } -extern int MYSQLparse(void *thd); // from sql_yacc.cc +extern int MYSQLparse(class THD *thd); // from sql_yacc.cc /** -- cgit v1.2.1 From 4e6e720160d983752465323477d74a1c90bad0cd Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 23 Jul 2014 19:36:15 +0200 Subject: MDEV-6290 Crash in KILL HARD QUERY USER x@y when slave threads are running KILL USER should ignore system threads where sctx->user=sctx->host=NULL --- sql/sql_parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_parse.cc') diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 2c833761e74..43b10a6fb9e 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -7365,7 +7365,7 @@ static uint kill_threads_for_user(THD *thd, LEX_USER *user, I_List_iterator it(threads); while ((tmp=it++)) { - if (tmp->command == COM_DAEMON) + if (!tmp->security_ctx->user) continue; /* Check that hostname (if given) and user name matches. -- cgit v1.2.1