diff options
author | unknown <monty@mysql.com> | 2004-11-09 15:50:33 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-11-09 15:50:33 +0200 |
commit | cd16e4c9c750a5bddfcecaa849dc277445aeaa5b (patch) | |
tree | 0f79c123c0efaca52f38efd272c5021f0f271365 /sql/sql_lex.h | |
parent | 8bddd448308a7de9d262665f49007ba5131ec076 (diff) | |
download | mariadb-git-cd16e4c9c750a5bddfcecaa849dc277445aeaa5b.tar.gz |
Simple optimization to avoid a malloc for each query
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 2bdc35f35cb..c8b4faa47c2 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -758,7 +758,8 @@ typedef struct st_lex st_lex() :result(0) { - bzero((char *)&spfuns, sizeof(spfuns)); + extern byte *sp_lex_spfuns_key(const byte *ptr, uint *plen, my_bool first); + hash_init(&spfuns, system_charset_info, 0, 0, 0, sp_lex_spfuns_key, 0, 0); } ~st_lex() |