1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fixed the old kludge for pre-loading functions and made it more efficient

using a hash table instead (and made it work with lex pointers).
Some additional code cleanup too.
This commit is contained in:
pem@mysql.com
2003-07-07 14:55:10 +02:00
parent 38c459e6b8
commit c908b555ff
4 changed files with 64 additions and 49 deletions

View File

@ -497,9 +497,19 @@ typedef struct st_lex
sp_head *sphead;
bool sp_lex_in_use; /* Keep track on lex usage in SPs for error handling */
sp_pcontext *spcont;
List<char> spfuns; /* Called functions */
HASH spfuns; /* Called functions */
st_lex()
{
bzero((char *)&spfuns, sizeof(spfuns));
}
~st_lex()
{
if (spfuns.array.buffer)
hash_free(&spfuns);
}
st_lex() {}
inline void uncacheable()
{
safe_to_cache_query= 0;