1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/sql
unknown e2433cbcaa Bug #30715: Assertion failed: item_field->field->real_maybe_null(),
file .\opt_sum.cc, line
The optimizer pre-calculates the MIN/MAX values for queries like
 SELECT MIN(kp_k) WHERE kp_1 = const AND ... AND kp_k-1 = const
when there is a key over kp_1...kp_k
In doing so it was not checking correctly nullability and 
there was a superfluous assert(). 
Fixed by making sure that the field can be null before checking and
taking out the wrong assert().
.
Introduced a correct check for nullability 
The MIN(field) can return NULL when all the row values in the group
are NULL-able or if there were no rows.
Fixed the assertion to reflect the case when there are no rows.


mysql-test/r/func_group.result:
  Bug #30715: test case
mysql-test/t/func_group.test:
  Bug #30715: test case
sql/opt_sum.cc:
  Bug #30715: correct nullability check for MIN/MAX pre-calculation over index.
2007-10-24 11:15:08 +03:00
..
2007-09-13 18:41:50 +05:00
2006-12-31 01:02:27 +01:00
2007-08-29 22:29:07 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-12 00:55:40 +05:00
2006-12-31 01:02:27 +01:00
2007-01-31 00:06:42 +01:00
2006-12-31 01:02:27 +01:00
2007-07-25 17:22:52 -07:00
2007-07-18 11:12:15 +04:00
2007-08-15 17:20:54 -06:00
2007-04-18 19:36:22 -06:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2007-10-14 11:28:43 +03:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-30 18:27:36 +03:00
2006-12-31 01:02:27 +01:00
2006-09-01 10:32:12 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2007-09-12 18:13:19 +04:00
2007-04-06 18:56:39 +04:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-02-08 15:53:14 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2007-07-05 18:24:48 +03:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2007-08-17 16:55:20 +02:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-30 18:27:36 +03:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-03-29 10:35:28 +04:00
2007-07-30 18:27:36 +03:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2006-12-31 01:02:27 +01:00
2007-07-01 15:33:28 -07:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2007-09-04 16:40:27 -06:00
2007-07-31 16:15:56 +04:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2007-03-22 20:32:07 +02:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2007-07-01 15:33:28 -07:00
2007-07-11 10:49:54 +03:00
2007-08-03 01:58:21 +05:00