1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Merge mysql1000.(none):/home/andrei/MySQL/MERGE/5.0-main2rpl

into  mysql1000.(none):/home/andrei/MySQL/MERGE/5.1-main2rpl
This commit is contained in:
aelkin/andrei@mysql1000.(none)
2008-03-29 15:00:12 +02:00
10 changed files with 566 additions and 26 deletions

View File

@@ -1069,6 +1069,19 @@ bool THD::store_globals()
void THD::cleanup_after_query()
{
last_insert_id_used= FALSE;
if (clear_next_insert_id)
{
clear_next_insert_id= 0;
next_insert_id= 0;
/*
BUG#33029, if one statement in a SP set this member to 1, all
statment after this statement in the SP would be considered used
INSERT_ID value, reset this member after each query to fix this.
*/
insert_id_used= 0;
}
/*
Reset rand_used so that detection of calls to rand() will save random
seeds if needed by the slave.