1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug#46616: Assertion `!table->auto_increment_field_not_null' on

view manipulations
      
The bespoke flag was not properly reset after last call to 
fill_record. Fixed by resetting in caller mysql_update.

mysql-test/r/auto_increment.result:
  Bug#46616: Test result.
mysql-test/t/auto_increment.test:
  Bug#46616: Test case.
sql/sql_update.cc:
  Bug#46616: Fix.
This commit is contained in:
Martin Hansson
2009-08-20 13:56:29 +02:00
parent 050c36c7de
commit e66fba53a7
3 changed files with 31 additions and 0 deletions

View File

@@ -527,6 +527,7 @@ int mysql_update(THD *thd,
table->file->unlock_row();
thd->row_count++;
}
table->auto_increment_field_not_null= FALSE;
/*
Caching the killed status to pass as the arg to query event constuctor;
The cached value can not change whereas the killed status can