1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Alexey Kopytov 9201bff16b Bug #50335: Assertion `!(order->used & map)' in eq_ref_table
The problem was in an incorrect debug assertion. The expression 
used in the failing assertion states that when finding 
references matching ORDER BY expressions, there can be only one 
reference to a single table. But that does not make any sense, 
all test cases for this bug are valid examples with multiple 
identical WHERE expressions referencing the same table which
are also present in the ORDER BY list. 
 
Fixed by removing the failing assertion. We also have to take 
care of the 'found' counter so that we count multiple 
references only once. We rely on this fact later in 
eq_ref_table(). 

mysql-test/r/join.result:
  Added a test case for bug #50335.
mysql-test/t/join.test:
  Added a test case for bug #50335.
sql/sql_select.cc:
  Removing the assertion in eq_ref_table() as it does not make
  any sense. We also have to take care of the 'found' counter so 
  that we count multiple references only once. We rely on this 
  fact later in eq_ref_table().
2010-02-25 18:48:53 +03:00
..
2009-09-29 17:38:40 +02:00
2009-09-29 17:38:40 +02:00
2010-02-22 16:58:56 +00:00
2010-01-29 15:08:49 +04:00
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2010-01-13 12:28:42 +02:00
2010-01-13 12:28:42 +02:00
2009-12-22 14:38:33 +04:00
2010-01-28 19:51:40 -02:00
2010-01-28 19:51:40 -02:00
2010-02-19 19:06:47 +00:00
2009-08-28 18:21:54 +02:00
2010-01-27 19:27:49 +02:00
2009-09-29 17:38:40 +02:00
2007-10-11 13:29:09 -04:00
2008-11-27 12:33:04 +01:00
2007-10-16 16:11:50 -04:00
2009-07-28 22:44:28 +04:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2008-08-25 21:18:22 +04:00
2009-06-01 16:00:38 +04:00
2007-10-11 14:37:45 -04:00
2009-11-03 20:45:52 +03:00
2010-01-28 19:51:40 -02:00
2010-01-28 19:51:40 -02:00
2009-09-29 17:38:40 +02:00
2008-07-03 23:41:22 +04:00
2010-02-22 16:58:56 +00:00
2009-04-29 07:59:10 +05:00
2009-12-18 16:44:24 -02:00
2008-01-23 13:26:41 -07:00
2009-08-28 18:21:54 +02:00
2009-06-17 16:56:44 +02:00
2009-06-17 16:56:44 +02:00
2010-02-16 09:54:16 +01:00
2010-02-22 16:58:56 +00:00
2010-02-22 16:58:56 +00:00
2009-12-18 16:44:24 -02:00
2008-12-10 18:16:21 +04:00
2007-10-16 16:11:50 -04:00
2010-01-28 19:51:40 -02:00
2010-01-24 15:03:23 +08:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2010-02-22 16:58:56 +00:00
2010-01-24 15:03:23 +08:00
2010-01-24 15:03:23 +08:00
2010-01-24 15:03:23 +08:00
2010-01-24 15:03:23 +08:00
2009-01-14 18:50:51 +04:00
2010-01-25 10:55:05 +08:00
2009-11-03 20:45:52 +03:00
2009-06-29 16:00:47 +02:00
2009-06-17 16:56:44 +02:00
2009-09-17 17:25:52 +02:00
2009-06-17 16:56:44 +02:00
2009-07-31 15:28:15 -04:00