MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
unknown decf9082fb Bug #22342: No results returned for query using max and group by
When using index for group by and range access the server isolates    
 a set of ranges based on the conditions over the key parts of the
 index used. Then it uses only the ranges over the GROUP BY fields to
 jump from one group to another. Since the GROUP BY fields may form a
 prefix over the index, we may use only a prefix of the ranges produced
 by the range optimizer.
 Each range contains a notion on whether it includes its border values.
 The problem is that when using a range prefix, the last range is open
 because it assumes that there is a range on the next keypart. Thus when
 we use a prefix range as it is, it excludes all border values.
 The solution is when ignoring the suffix of the range conditions 
 (to jump over the GROUP BY prefix only) the server must change the 
 remaining intervals so they always contain their borders, e.g. 
 if the whole range was :
 (1,-inf) <= (<group_by_col>,<min_max_arg_col>) < (1, 3) we must make
 (1) <= (<group_by_col>) <= (1) because (a,b) < (c1,c2) means :
 a < c1 OR (a = c1 AND b < c2).


mysql-test/r/group_min_max.result:
  Bug #22342: No results returned for query using max and group by
   - test case
mysql-test/t/group_min_max.test:
  Bug #22342: No results returned for query using max and group by
   - test case
sql/opt_range.cc:
  Bug #22342: No results returned for query using max and group by
   - open the intervals for prefix select when there are more conditions
     than used for the prefix search.
sql/opt_range.h:
  Bug #22342: No results returned for query using max and group by
   - open the intervals for prefix select when there are more conditions
     than used for the prefix search.
2006-10-16 19:30:19 +03:00
bdb make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
BitKeeper Merge bk-internal:/home/bk/mysql-5.0-maint 2006-09-15 11:03:55 +02:00
BUILD Merge perch.ndb.mysql.com:/home/jonas/src/mysql-4.1 2006-09-05 15:05:52 +02:00
client Merge ted.mysql.internal:/home/ted/src/mysql/mysql-5.0-maint 2006-09-15 04:32:58 +04:00
cmd-line-utils Merge neptunus.(none):/home/msvensson/mysql/bug16557/my50-bug16557 2006-02-21 08:58:19 +01:00
config/ac-macros Bug#21327 OpenSSL-checking in configure 2006-08-14 20:16:47 +02:00
dbug make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
Docs Merge mysql.com:/home/tomash/src/mysql_ab/tmp_merge 2006-05-06 11:18:42 +04:00
extra Bug#22326 Build problems on hurd-i386: conflicting declaration of socklen_t 2006-09-15 15:41:04 +02:00
heap make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
include Add definition of SHUT_RDWR for compiling on windows 2006-09-15 17:53:45 +02:00
innobase make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
libmysql make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
libmysql_r Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
libmysqld bug #16513 (no mysql_set_server_option in libmysqld.dll export) 2006-08-19 15:15:36 +05:00
man Makefile.am, configure.in: 2006-07-28 23:12:40 +02:00
myisam make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
myisammrg make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
mysql-test Bug #22342: No results returned for query using max and group by 2006-10-16 19:30:19 +03:00
mysys Merge bk-internal.mysql.com:/data0/bk/mysql-5.0 2006-09-02 11:03:16 +02:00
ndb Merge msvensson.mysql.internal:mysql/my50-m-bug16574 2006-09-15 16:55:47 +02:00
netware mwldnlm, mwccnlm, mwasmnlm: 2006-07-03 16:44:17 +02:00
os2 Merge 2005-09-29 03:20:31 +02:00
pstack Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
regex make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
scripts Add SSL specific linker flags to --libmysqld-libs (Bug #21239) 2006-09-15 16:35:50 +02:00
server-tools make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
sql Bug #22342: No results returned for query using max and group by 2006-10-16 19:30:19 +03:00
sql-bench Set thread_stack after return from end_thread() 2005-12-03 18:13:06 +02:00
sql-common Merge mysql.com:/home/gluh/MySQL/Merge/4.1-merge 2006-09-07 15:17:46 +05:00
SSL Remove client-req-pem and server-req.pem 2006-05-03 11:53:16 +02:00
strings make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
support-files Merge mysql.com:/Users/kent/mysql/bk/bug17194/my50-bug17194 2006-08-24 14:51:54 +02:00
tests Merge shellback.(none):/home/msvensson/mysql/bug22139/my50-bug22139 2006-09-15 16:42:27 +02:00
tools Bug#19575 MySQL-shared-5.0.21-0.glibc23 causes segfault in SSL_library_init 2006-05-31 16:19:06 +02:00
VC++Files Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.0 2006-08-06 16:47:49 +02:00
vio Merge shellback.(none):/home/msvensson/mysql/work/my50-work 2006-09-15 14:31:25 +02:00
win Additional files for cmake support 2006-08-31 19:52:42 +02:00
zlib make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
.bzrignore Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/winbkfix/my50-winbkfix 2006-09-13 14:18:36 -04:00
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
CMakeLists.txt Additional files for cmake support 2006-08-31 19:52:42 +02:00
configure.in Merge shellback.(none):/home/msvensson/mysql/bug20602/my50-bug20602 2006-09-15 16:57:37 +02:00
COPYING - manual.texi will be replaced with a manual written in DocBook/XML. This ChangeSet removes all 2005-04-13 11:51:38 +02:00
Makefile.am make dist changes for Cmake build 2006-09-01 10:32:12 +02:00
README README: 2006-04-01 04:13:33 +02:00

This is a release of MySQL, a dual-license SQL database server.
MySQL is brought to you by the MySQL team at MySQL AB.

License information can be found in these files:
- For GPL (free) distributions, see the COPYING file.
- For commercial distributions, see the MySQLEULA.txt file.


For further information about MySQL or additional documentation, see:
- The latest information about MySQL: http://www.mysql.com
- The current MySQL documentation: http://dev.mysql.com/doc

Some manual sections of special interest:

- If you are migrating from an older version of MySQL, please read the
  "Upgrading from..." section first!
- To see what MySQL can do, take a look at the features section.
- For installation instructions, see the Installation chapter.
- For future plans, see the TODO appendix.
- For the new features/bugfix history, see the News appendix.
- For the currently known bugs/misfeatures (known errors) see the problems
  appendix.
- For a list of developers and other contributors, see the Credits
  appendix.

A local copy of the MySQL Reference Manual can be found in the Docs
directory in GNU Info format.  You can also browse the manual online or
download it in any of several formats at the URL given earlier in this
file.

************************************************************

IMPORTANT:

Bug or error reports should be sent to http://bugs.mysql.com.