|
|
@ -1,6 +1,6 @@ |
|
|
|
/*****************************************************************************
|
|
|
|
|
|
|
|
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All Rights Reserved. |
|
|
|
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All Rights Reserved. |
|
|
|
Copyright (c) 2008, 2009 Google Inc. |
|
|
|
Copyright (c) 2009, Percona Inc. |
|
|
|
|
|
|
@ -2920,7 +2920,8 @@ skip_relay: |
|
|
|
internal_innobase_data_file_path); |
|
|
|
if (ret == FALSE) { |
|
|
|
sql_print_error( |
|
|
|
"InnoDB: syntax error in innodb_data_file_path"); |
|
|
|
"InnoDB: syntax error in innodb_data_file_path" |
|
|
|
" or size specified is less than 1 megabyte"); |
|
|
|
mem_free_and_error: |
|
|
|
srv_free_paths_and_sizes(); |
|
|
|
my_free(internal_innobase_data_file_path); |
|
|
@ -11544,6 +11545,21 @@ ha_innobase::get_auto_increment( |
|
|
|
|
|
|
|
current = *first_value; |
|
|
|
|
|
|
|
/* If the increment step of the auto increment column
|
|
|
|
decreases then it is not affecting the immediate |
|
|
|
next value in the series. */ |
|
|
|
if (prebuilt->autoinc_increment > increment) { |
|
|
|
|
|
|
|
current = autoinc - prebuilt->autoinc_increment; |
|
|
|
|
|
|
|
current = innobase_next_autoinc( |
|
|
|
current, 1, increment, 1, col_max_value); |
|
|
|
|
|
|
|
dict_table_autoinc_initialize(prebuilt->table, current); |
|
|
|
|
|
|
|
*first_value = current; |
|
|
|
} |
|
|
|
|
|
|
|
/* Compute the last value in the interval */ |
|
|
|
next_value = innobase_next_autoinc( |
|
|
|
current, *nb_reserved_values, increment, offset, |
|
|
|