1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
unknown a578be339d Fix bug#11709 View was ordered by wrong column.
When searching column to sort on, item was compared to field under view
column, but not the column itself. Because names of view column and underlaid
field may differ, it leads to possibly choosing wrong column for sorting on.

This patch makes Item_direct_view_ref::eq(Item *item,...) compare
item's name with it's own name proir to comparing to *ref item.


sql/item.cc:
  Fix bug #11709 View was ordered by wrong column
sql/item.h:
  Fix bug #11709 View was ordered by wrong column
mysql-test/t/view.test:
  Test case for bug #11709 View was ordered by wrong column.
mysql-test/r/view.result:
  Test case for bug #11709 View was ordered by wrong column.
2005-07-12 23:22:08 +04:00
..
2005-05-14 16:24:36 +03:00
2005-06-03 17:13:43 +02:00
2005-05-07 08:25:59 -07:00
2005-06-16 10:09:05 +02:00
2005-06-23 19:05:36 +02:00
2005-06-15 08:39:00 -07:00
2005-03-15 16:54:11 +03:00
2005-06-09 17:15:06 +01:00
2005-05-05 10:36:17 -07:00
2005-04-13 10:38:11 -07:00
2005-07-03 14:17:52 +03:00
2005-06-01 17:36:21 +02:00
2005-02-22 15:47:00 +02:00
2005-04-02 20:28:58 +02:00
2004-12-06 19:18:35 +02:00
2005-06-27 20:31:00 +03:00
2005-02-09 02:50:45 +04:00
2005-06-07 00:31:53 +03:00
2005-06-14 00:05:27 +02:00
2005-01-20 15:38:56 +04:00
2005-03-22 15:57:24 +02:00
2005-05-18 13:54:36 -07:00
2005-07-04 16:01:04 +03:00
2005-01-04 13:46:53 +02:00
2005-07-03 14:17:52 +03:00
2005-07-03 14:17:52 +03:00
2004-12-07 13:56:48 +03:00
2005-04-11 22:36:07 +02:00
2005-04-05 19:45:34 -07:00
2005-05-24 15:52:48 +01:00
2005-05-18 13:54:36 -07:00
2005-05-18 11:06:34 -07:00
2005-06-30 20:44:31 +02:00
2005-06-16 12:46:09 +02:00
2005-07-03 14:17:52 +03:00
2005-05-19 20:38:48 +02:00
2005-04-21 11:11:37 +02:00
2005-04-19 17:23:49 +02:00
2005-04-21 11:11:37 +02:00
2005-04-21 10:26:14 +02:00
2005-04-21 10:26:14 +02:00
2005-04-21 10:26:14 +02:00
2005-04-21 10:26:14 +02:00
2005-04-19 17:23:49 +02:00
2005-04-19 17:23:49 +02:00
2005-04-19 17:23:49 +02:00
2005-04-21 10:26:14 +02:00
2005-04-05 20:55:06 -07:00
2005-07-01 03:46:08 -07:00
2005-04-01 00:03:26 +05:00
2005-04-05 19:45:34 -07:00
2005-05-14 16:24:36 +03:00
2005-05-14 14:42:25 +04:00
2005-07-05 11:38:05 +03:00
2005-06-28 07:27:00 -07:00
2005-03-16 04:32:47 +03:00
2004-12-06 17:15:54 +02:00
2005-02-23 19:58:54 +01:00
2005-03-16 04:32:47 +03:00
2005-03-16 04:32:47 +03:00
2005-01-30 10:24:03 +00:00
2005-01-31 13:18:36 +00:00
2005-04-06 12:20:55 +02:00
2005-02-25 17:12:06 +02:00
2005-02-28 19:59:38 +04:00
2005-07-04 03:24:25 +03:00
2005-07-06 11:34:53 +04:00
2005-06-23 02:08:30 -07:00
2005-03-03 15:01:46 -08:00
2005-05-07 08:25:58 -07:00
2005-06-30 13:38:29 +05:00
2005-07-01 15:07:06 +05:00
2005-04-05 19:45:34 -07:00
2005-05-28 01:28:18 +02:00
2005-07-03 14:17:52 +03:00
2005-06-07 00:31:53 +03:00