diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-04-27 21:04:06 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-04-27 21:04:06 +0200 |
commit | 0f12ada6b6a390b8663151f5d8cfae2e6dc9c2bb (patch) | |
tree | 5af5b81499f6137f45a37fc77cc518e40fd4ad72 /sql/sql_yacc.yy | |
parent | e4df6e5799eec20a16e279f7e74e95f18cd475fe (diff) | |
parent | e02fe87f00dc9fdb0fb6ab13f2e87485f79f3341 (diff) | |
download | mariadb-git-0f12ada6b6a390b8663151f5d8cfae2e6dc9c2bb.tar.gz |
Merge remote-tracking branch 'mysql/5.5' into 5.5
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r-- | sql/sql_yacc.yy | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy index 257001c80d1..bd0014f4764 100644 --- a/sql/sql_yacc.yy +++ b/sql/sql_yacc.yy @@ -1,6 +1,6 @@ /* - Copyright (c) 2000, 2014, Oracle and/or its affiliates. - Copyright (c) 2010, 2014, Monty Program Ab. + Copyright (c) 2000, 2015, Oracle and/or its affiliates. + Copyright (c) 2010, 2015, MariaDB 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 @@ -14597,6 +14597,13 @@ subselect_end: */ lex->current_select->select_n_where_fields+= child->select_n_where_fields; + + /* + Aggregate functions in having clause may add fields to an outer + select. Count them also. + */ + lex->current_select->select_n_having_items+= + child->select_n_having_items; } ; |