Bug #26191 | db_length forgot to be restored in Event_job_data::compile? mismatch with db | ||
---|---|---|---|
Submitted: | 8 Feb 2007 17:26 | Modified: | 28 Apr 2007 21:56 |
Reporter: | Shan Lu | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S2 (Serious) |
Version: | 5.1.16-BK, 5.2.0-falcon-alpha | OS: | Linux (Linux) |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[8 Feb 2007 17:26]
Shan Lu
[9 Feb 2007 11:30]
Valeriy Kravchuk
Thank you for a problem report. Verified also with latest 5.1.16-BK source code (line numbers are a bit different, but anyway): line 1777 old_db= thd->db; line 1778 old_db_length= thd->db_length; ... done: lex_end(&lex); event_restore_security_context(thd, &save_ctx); DBUG_PRINT("note", ("return old data on its place. set back NAMES")); thd->lex= old_lex; thd->query= old_query; thd->query_length= old_query_len; thd->db= old_db; thd->variables.sql_mode= old_sql_mode; thd->variables.character_set_client= old_character_set_client; thd->variables.character_set_results= old_character_set_results; thd->variables.collation_connection= old_collation_connection; thd->update_charset(); /* Change the memory root for the execution time. */ if (mem_root) thd->mem_root= tmp_mem_root; DBUG_RETURN(ret); }
[10 Apr 2007 21:59]
Konstantin Osipov
The patch for Bug#27733 also fixes this bug.
[28 Apr 2007 21:56]
Konstantin Osipov
Fixed in the patch for Bug#27733. No documentation entry is needed.