mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
1f77c7b49a
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. |
||
---|---|---|
.. | ||
methods1.inc | ||
part_blocked_sql_funcs_main.inc | ||
part_supported_sql_funcs_delete.inc | ||
part_supported_sql_funcs_main.inc | ||
partition.pre | ||
partition_10.inc | ||
partition_11.inc | ||
partition_12.inc | ||
partition_20.inc | ||
partition_alter1_1.inc | ||
partition_alter1_1_2.inc | ||
partition_alter1_2.inc | ||
partition_alter2_1.inc | ||
partition_alter2_2.inc | ||
partition_alter3.inc | ||
partition_alter4.inc | ||
partition_alter_1.inc | ||
partition_alter_11.inc | ||
partition_alter_13.inc | ||
partition_alter_41.inc | ||
partition_auto_increment.inc | ||
partition_basic.inc | ||
partition_basic_symlink.inc | ||
partition_bigint.inc | ||
partition_binary.inc | ||
partition_bit.inc | ||
partition_blob.inc | ||
partition_blocked_sql_funcs.inc | ||
partition_char.inc | ||
partition_check.inc | ||
partition_check_drop.inc | ||
partition_check_read.inc | ||
partition_check_read1.inc | ||
partition_check_read2.inc | ||
partition_cleanup.inc | ||
partition_date.inc | ||
partition_datetime.inc | ||
partition_decimal.inc | ||
partition_directory.inc | ||
partition_double.inc | ||
partition_engine.inc | ||
partition_enum.inc | ||
partition_float.inc | ||
partition_int.inc | ||
partition_key_4col.inc | ||
partition_key_8col.inc | ||
partition_key_16col.inc | ||
partition_key_32col.inc | ||
partition_layout.inc | ||
partition_layout_check1.inc | ||
partition_layout_check2.inc | ||
partition_mediumint.inc | ||
partition_methods1.inc | ||
partition_methods2.inc | ||
partition_mgm.inc | ||
partition_set.inc | ||
partition_smallint.inc | ||
partition_supported_sql_funcs.inc | ||
partition_syntax.inc | ||
partition_syntax_1.inc | ||
partition_syntax_2.inc | ||
partition_text.inc | ||
partition_time.inc | ||
partition_timestamp.inc | ||
partition_tinyint.inc | ||
partition_trigg1.inc | ||
partition_trigg2.inc | ||
partition_trigg3.inc | ||
partition_value.inc | ||
partition_varbinary.inc | ||
partition_varchar.inc | ||
partition_year.inc |