diff options
author | unknown <holyfoot/hf@hfmain.(none)> | 2007-07-31 11:03:31 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@hfmain.(none)> | 2007-07-31 11:03:31 +0500 |
commit | 2dc02f2424a0b9637574e59ebb01f17cd5ca5fca (patch) | |
tree | 1338ba998786c6a663f5e2022c65fba822fcb911 /sql/sql_select.h | |
parent | d86f0a1382c71a6e1bb4f7d8d42cf2b8336c02cc (diff) | |
parent | 6b745cf601761057d414f631924c6fae5be999b2 (diff) | |
download | mariadb-git-2dc02f2424a0b9637574e59ebb01f17cd5ca5fca.tar.gz |
Merge mysql.com:/home/hf/work/29717/my41-29717
into mysql.com:/home/hf/work/29717/my50-29717
mysql-test/t/insert_select.test:
Auto merged
sql/sql_select.cc:
Auto merged
mysql-test/r/group_by.result:
merging
mysql-test/r/insert_select.result:
merging
mysql-test/t/group_by.test:
merging
sql/sql_select.h:
merging
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 4f9f6e9ed48..dbd555c16f8 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -282,6 +282,14 @@ public: ROLLUP rollup; // Used with rollup bool select_distinct; // Set if SELECT DISTINCT + /* + If we have the GROUP BY statement in the query, + but the group_list was emptied by optimizer, this + flag is TRUE. + It happens when fields in the GROUP BY are from + constant table + */ + bool group_optimized_away; /* simple_xxxxx is set if ORDER/GROUP BY doesn't include any references @@ -390,6 +398,7 @@ public: zero_result_cause= 0; optimized= 0; cond_equal= 0; + group_optimized_away= 0; all_fields= fields_arg; fields_list= fields_arg; |