1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Post-merge fixes.

This commit is contained in:
unknown
2003-12-20 15:43:24 +01:00
parent 495082a6c9
commit 3fa541df60
3 changed files with 9 additions and 66 deletions

View File

@ -937,6 +937,13 @@ bool mysql_stmt_prepare(THD *thd, char *packet, uint packet_length)
DBUG_RETURN(0);
yyparse_err:
if (thd->lex->sphead)
{
if (lex != thd->lex)
thd->lex->sphead->restore_lex(thd);
delete thd->lex->sphead;
thd->lex->sphead= NULL;
}
lex_end(lex);
stmt->set_statement(thd);
thd->set_statement(&thd->stmt_backup);