Below is the list of changes that have just been committed into a local
5.0 repository of igor. When igor does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.1998 05/09/26 23:29:02 igor@stripped +3 -0
item.cc:
Fixed bug #13410.
Fixed name resolution for qualified reference to a view column
in the HAVING clause.
view.result, view.test:
Added a test case for bug #13410.
sql/item.cc
1.181 05/09/26 23:27:41 igor@stripped +1 -1
Fixed bug #13410.
Fixed name resolution for qualified reference to a view column
in the HAVING clause.
mysql-test/r/view.result
1.121 05/09/26 23:26:57 igor@stripped +13 -0
Added a test case for bug #13410.
mysql-test/t/view.test
1.113 05/09/26 23:26:29 igor@stripped +11 -0
Added a test case for bug #13410.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: igor
# Host: rurik.mysql.com
# Root: /home/igor/dev/mysql-5.0-2
--- 1.180/sql/item.cc Mon Sep 26 20:14:49 2005
+++ 1.181/sql/item.cc Mon Sep 26 23:27:41 2005
@@ -2983,7 +2983,7 @@
for (ORDER *cur_group= group_list ; cur_group ; cur_group= cur_group->next)
{
- if ((*(cur_group->item))->type() == Item::FIELD_ITEM)
+ if ((*(cur_group->item))->real_item()->type() == Item::FIELD_ITEM)
{
cur_field= (Item_field*) *cur_group->item;
cur_match_degree= 0;
--- 1.120/mysql-test/r/view.result Mon Sep 26 20:03:28 2005
+++ 1.121/mysql-test/r/view.result Mon Sep 26 23:26:57 2005
@@ -2275,3 +2275,16 @@
3
DROP VIEW v1;
DROP TABLE t1;
+CREATE TABLE t1 ( a int, b int );
+INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
+CREATE VIEW v1 AS SELECT a,b FROM t1;
+SELECT t1.a FROM t1 GROUP BY t1.a HAVING t1.a > 1;
+a
+2
+3
+SELECT v1.a FROM v1 GROUP BY v1.a HAVING v1.a > 1;
+a
+2
+3
+DROP VIEW v1;
+DROP TABLE t1;
--- 1.112/mysql-test/t/view.test Mon Sep 26 20:03:03 2005
+++ 1.113/mysql-test/t/view.test Mon Sep 26 23:26:29 2005
@@ -2153,4 +2153,15 @@
DROP VIEW v1;
DROP TABLE t1;
+#
+# Bug #13410: failed name resolution for qualified view column in HAVING
+#
+CREATE TABLE t1 ( a int, b int );
+INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
+CREATE VIEW v1 AS SELECT a,b FROM t1;
+SELECT t1.a FROM t1 GROUP BY t1.a HAVING t1.a > 1;
+SELECT v1.a FROM v1 GROUP BY v1.a HAVING v1.a > 1;
+
+DROP VIEW v1;
+DROP TABLE t1;
| Thread |
|---|
| • bk commit into 5.0 tree (igor:1.1998) BUG#13410 | igor | 27 Sep |