mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Backport of:
---------------------------------------------------------- revno: 2617.22.5 committer: Konstantin Osipov <kostja@sun.com> branch nick: mysql-6.0-runtime timestamp: Tue 2009-01-27 05:08:48 +0300 message: Remove non-prefixed use of HASH. Always use my_hash_init(), my_hash_inited(), my_hash_search(), my_hash_element(), my_hash_delete(), my_hash_free() rather than non-prefixed counterparts (hash_init(), etc). Remove the backward-compatible defines.
This commit is contained in:
@ -772,8 +772,8 @@ public:
|
||||
Statement *find_by_name(LEX_STRING *name)
|
||||
{
|
||||
Statement *stmt;
|
||||
stmt= (Statement*)hash_search(&names_hash, (uchar*)name->str,
|
||||
name->length);
|
||||
stmt= (Statement*)my_hash_search(&names_hash, (uchar*)name->str,
|
||||
name->length);
|
||||
return stmt;
|
||||
}
|
||||
|
||||
@ -782,7 +782,7 @@ public:
|
||||
if (last_found_statement == 0 || id != last_found_statement->id)
|
||||
{
|
||||
Statement *stmt;
|
||||
stmt= (Statement *) hash_search(&st_hash, (uchar *) &id, sizeof(id));
|
||||
stmt= (Statement *) my_hash_search(&st_hash, (uchar *) &id, sizeof(id));
|
||||
if (stmt && stmt->name.str)
|
||||
return NULL;
|
||||
last_found_statement= stmt;
|
||||
|
Reference in New Issue
Block a user