1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

sql_base.cc, item.cc:

Fixed bug #13411.
  Fixed name resolution for non-qualified reference to a view column
  in the HAVING clause.
view.result, view.test:
  Added a test case for bug #13411.
This commit is contained in:
igor@rurik.mysql.com
2005-09-26 20:18:59 -07:00
parent 0061782cd0
commit a43b341c8a
4 changed files with 32 additions and 4 deletions

View File

@@ -3459,7 +3459,7 @@ find_item_in_list(Item *find, List<Item> &items, uint *counter,
}
}
}
else if (!table_name && (item->eq(find,0) ||
else if (!table_name && (find->eq(item,0) ||
find->name && item->name &&
!my_strcasecmp(system_charset_info,
item->name,find->name)))