Commit bfd6c218 authored by sergefp@mysql.com's avatar sergefp@mysql.com

Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/dbdata/psergey/mysql-4.1-heap-bug
parents 1cc999fb 2b111770
...@@ -1505,17 +1505,14 @@ innobase_close_connection( ...@@ -1505,17 +1505,14 @@ innobase_close_connection(
*****************************************************************************/ *****************************************************************************/
/******************************************************************** /********************************************************************
This function is not relevant since we store the tables and indexes Gives the file extension of an InnoDB single-table tablespace. */
into our own tablespace, not as files, whose extension this function would
give. */
const char** const char**
ha_innobase::bas_ext() const ha_innobase::bas_ext() const
/*========================*/ /*========================*/
/* out: file extension strings, currently not /* out: file extension string */
used */
{ {
static const char* ext[] = {".InnoDB", NullS}; static const char* ext[] = {".ibd", NullS};
return(ext); return(ext);
} }
...@@ -2390,8 +2387,9 @@ ha_innobase::write_row( ...@@ -2390,8 +2387,9 @@ ha_innobase::write_row(
same SQL statement! */ same SQL statement! */
if (auto_inc == 0 && user_thd->next_insert_id != 0) { if (auto_inc == 0 && user_thd->next_insert_id != 0) {
auto_inc = user_thd->next_insert_id;
auto_inc_counter_for_this_stat = auto_inc; auto_inc_counter_for_this_stat
= user_thd->next_insert_id;
} }
if (auto_inc == 0 && auto_inc_counter_for_this_stat) { if (auto_inc == 0 && auto_inc_counter_for_this_stat) {
...@@ -2399,14 +2397,14 @@ ha_innobase::write_row( ...@@ -2399,14 +2397,14 @@ ha_innobase::write_row(
this SQL statement with SET INSERT_ID. We must this SQL statement with SET INSERT_ID. We must
assign sequential values from the counter. */ assign sequential values from the counter. */
auto_inc_counter_for_this_stat++;
incremented_auto_inc_for_stat = TRUE;
auto_inc = auto_inc_counter_for_this_stat; auto_inc = auto_inc_counter_for_this_stat;
/* We give MySQL a new value to place in the /* We give MySQL a new value to place in the
auto-inc column */ auto-inc column */
user_thd->next_insert_id = auto_inc; user_thd->next_insert_id = auto_inc;
auto_inc_counter_for_this_stat++;
incremented_auto_inc_for_stat = TRUE;
} }
if (auto_inc != 0) { if (auto_inc != 0) {
......
...@@ -264,7 +264,7 @@ Item_func::Item_func(THD *thd, Item_func *item) ...@@ -264,7 +264,7 @@ Item_func::Item_func(THD *thd, Item_func *item)
Sets as a side effect the following class variables: Sets as a side effect the following class variables:
maybe_null Set if any argument may return NULL maybe_null Set if any argument may return NULL
with_sum_func Set if any of the arguments contains a sum function with_sum_func Set if any of the arguments contains a sum function
used_table_cache Set to union of the arguments used table used_tables_cache Set to union of the tables used by arguments
str_value.charset If this is a string function, set this to the str_value.charset If this is a string function, set this to the
character set for the first argument. character set for the first argument.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment