1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Adopt SP stuff to the new lex pointer.

This commit is contained in:
pem@mysql.com
2003-05-23 15:32:31 +02:00
parent 384b10e2af
commit 4523a7b179
9 changed files with 121 additions and 68 deletions

View File

@ -71,6 +71,7 @@ Long data handling:
#include "sql_acl.h"
#include "sql_select.h" // for JOIN
#include <m_ctype.h> // for isspace()
#include "sp_head.h"
#define IS_PARAM_NULL(pos, param_no) pos[param_no/8] & (1 << param_no & 7)
@ -761,6 +762,8 @@ static bool parse_prepare_query(PREP_STMT *stmt,
thd->lex->param_count= 0;
if (!yyparse((void *)thd) && !thd->is_fatal_error)
error= send_prepare_results(stmt);
if (thd->lex->sphead && lex != thd->lex)
thd->lex->sphead->restore_lex(thd);
lex_end(lex);
DBUG_RETURN(error);
}