Merge mockturtle.local:/home/dlenev/src/mysql-5.0-hash-2

into  mockturtle.local:/home/dlenev/src/mysql-5.1-merge


sql/sp.cc:
  Auto merged
sql/sql_lex.cc:
  Auto merged
sql/sql_lex.h:
  Auto merged
This commit is contained in:
unknown 2006-11-01 15:46:40 +03:00
commit 8c6382f5c6
4 changed files with 21 additions and 2 deletions

View file

@ -1371,6 +1371,10 @@ static bool add_used_routine(LEX *lex, Query_arena *arena,
const LEX_STRING *key,
TABLE_LIST *belong_to_view)
{
hash_init_opt(&lex->sroutines, system_charset_info,
Query_tables_list::START_SROUTINES_HASH_SIZE,
0, 0, sp_sroutine_key, 0, 0);
if (!hash_search(&lex->sroutines, (byte *)key->str, key->length))
{
Sroutine_hash_entry *rn=