mariadb/mysql-test/suite/parts/inc
Mattias Jonsson 1f77c7b49a Bug#50392: insert_id is not reset for partitioned tables
auto_increment on duplicate entry

The bug was that when INSERT_ID was used and the storage
engine was told to release any reserved but not used
auto_increment values, it set the highest auto_increment
value to INSERT_ID.

The fix was to check if the auto_increment value was forced
by user (INSERT_ID) or by slave-thread, i.e. not auto-
generated. So that it is only allowed to release generated
values.

mysql-test/r/partition_error.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  updated result
mysql-test/suite/parts/inc/partition_auto_increment.inc:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added test
mysql-test/suite/parts/r/partition_auto_increment_archive.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that archive does only allow increasing
  auto_increment values
mysql-test/suite/parts/r/partition_auto_increment_blackhole.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that blackhole accepts all inserts :)
mysql-test/suite/parts/r/partition_auto_increment_innodb.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that innodb rolls back inserts on error,
  but keeps the auto_increment value.
mysql-test/suite/parts/r/partition_auto_increment_memory.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that memory and myisam inserts all rows
  before the error.
mysql-test/suite/parts/r/partition_auto_increment_myisam.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that memory and myisam inserts all rows
  before the error.
mysql-test/suite/parts/r/partition_auto_increment_ndb.result:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added result, note that NDB does not seem to handle
  INSERT_ID as other engines. (Martin will look into it).
mysql-test/t/partition_error.test:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  Added test
sql/ha_partition.cc:
  Bug#50392: insert_id is not reset for partitioned tables
  auto_increment on duplicate entry
  
  If the next_insert_id comes from non generated (i.e
  forced by INSERT_ID or slave-thread) then we cannot
  lower the reserved auto_increment value, since it have
  not reserved any values.
2010-03-04 18:16:10 +01:00
..
methods1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
part_blocked_sql_funcs_main.inc Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
part_supported_sql_funcs_delete.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
part_supported_sql_funcs_main.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition.pre - Add autodetection of which my.cnfs to use for each testcase if suite does 2008-01-10 16:50:37 +01:00
partition_10.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_11.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_12.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_20.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter1_1.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter1_1_2.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter1_2.inc Merge magare.gmz:/home/kgeorge/mysql/work/B36011-take2-5.0-bugteam 2008-05-16 19:03:50 +03:00
partition_alter2_1.inc Bug#37803: Test "partition_alter2_innodb" exhausts resources (time and/or memory) 2008-09-18 12:02:48 +03:00
partition_alter2_2.inc Bug#37803: Test "partition_alter2_innodb" exhausts resources (time and/or memory) 2008-09-18 12:02:48 +03:00
partition_alter3.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter4.inc Bug#20129: ALTER TABLE ... REPAIR PARTITION ... complains that 2008-08-11 20:02:03 +02:00
partition_alter_1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter_11.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_alter_13.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_alter_41.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_auto_increment.inc Bug#50392: insert_id is not reset for partitioned tables 2010-03-04 18:16:10 +01:00
partition_basic.inc additional test fix for Bug#32167 another privilege bypass with DATA/INDEX DIRECTORY 2008-02-29 12:52:50 +04:00
partition_basic_symlink.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_bigint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_binary.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_bit.inc Bug#34225: suite/parts test failure 2008-02-07 16:26:22 +01:00
partition_blob.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_blocked_sql_funcs.inc Fixes for the following bugs: 2007-08-27 14:08:32 -06:00
partition_char.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_check.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_drop.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_check_read.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_read1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_check_read2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_cleanup.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_date.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_datetime.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_decimal.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_directory.inc Bug#14326: No formatting of partitioning clause in SHOW CREATE TABLE output 2008-11-04 08:43:21 +01:00
partition_double.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_engine.inc Post push fix 2008-02-25 21:18:50 +01:00
partition_enum.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_float.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_int.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_key_4col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_8col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_16col.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_key_32col.inc fixed some parts test suite bugs 2009-01-31 17:47:35 +02:00
partition_layout.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_layout_check1.inc Fixed the parts testsuite to work with mtr2 2009-02-01 14:00:48 +02:00
partition_layout_check2.inc Fixed the parts testsuite to work with mtr2 2009-02-01 14:00:48 +02:00
partition_mediumint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_methods1.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_methods2.inc Bug#35306: partition_basic_symlink test failures 2008-03-17 16:18:02 +01:00
partition_mgm.inc merge and pre push fix for test of bug#37719 2008-11-05 22:26:39 +01:00
partition_set.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_smallint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_supported_sql_funcs.inc merged 5.1 main to 5.1-rpl 2008-08-04 07:04:47 +02:00
partition_syntax.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_syntax_1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_syntax_2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_text.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_time.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_timestamp.inc Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
partition_tinyint.inc Bug#36732: many disabled ndb tests in test suite parts 2008-07-01 20:38:15 +02:00
partition_trigg1.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_trigg2.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_trigg3.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_value.inc Fixes for the bugs 2007-11-20 16:04:07 +01:00
partition_varbinary.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_varchar.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00
partition_year.inc Bug#34225: test suit parts uses /tmp-dir 2008-02-06 15:13:56 +01:00