mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
097023fee7
Inserting a negative value in the autoincrement column of a partitioned innodb table was causing the value of the auto increment counter to wrap around into a very large positive value. The consequences are the same as if a very large positive value was inserted into a column, e.g. reduced autoincrement range, failure to read autoincrement counter. The current patch ensures that before calculating the next auto increment value, the current value is within the positive maximum allowed limit.
38 lines
1.9 KiB
Text
38 lines
1.9 KiB
Text
################################################################################
|
|
# t/partition_auto_increment_blackhole.test #
|
|
# #
|
|
# Purpose: #
|
|
# Tests around auto increment column #
|
|
# Blackhole branch #
|
|
# #
|
|
#------------------------------------------------------------------------------#
|
|
# Original Author: MattiasJ #
|
|
# Original Date: 2008-09-02 #
|
|
# Change Author: #
|
|
# Change Date: #
|
|
# Change: #
|
|
################################################################################
|
|
|
|
#
|
|
# NOTE: PLEASE DO NOT ADD NOT MYISAM SPECIFIC TESTCASES HERE !
|
|
# TESTCASES WHICH MUST BE APPLIED TO ALL STORAGE ENGINES MUST BE ADDED IN
|
|
# THE SOURCED FILES ONLY.
|
|
#
|
|
|
|
# The server must support partitioning.
|
|
--source include/have_partition.inc
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# Engine specific settings and requirements
|
|
--source include/have_blackhole.inc
|
|
# Bug#45823 Assertion failure in file row/row0mysql.c line 1386
|
|
# Blackhole does not handle negative autoincrement values correctly
|
|
let $skip_negative_auto_inc= 1;
|
|
|
|
##### Storage engine to be tested
|
|
let $engine= 'Blackhole';
|
|
|
|
#------------------------------------------------------------------------------#
|
|
# Execute the tests to be applied to all storage engines
|
|
--source suite/parts/inc/partition_auto_increment.inc
|
|
|