Skip to content

Commit 6b02da5

Browse files
author
Arun Kuruvila
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents cb7af34 + 08526df commit 6b02da5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sql/sql_table.cc

+4
Original file line numberDiff line numberDiff line change
@@ -6954,6 +6954,10 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
69546954
if (create_info->storage_media == HA_SM_DEFAULT)
69556955
create_info->storage_media= table->s->default_storage_media;
69566956

6957+
/* Creation of federated table with LIKE clause needs connection string */
6958+
if (!(used_fields & HA_CREATE_USED_CONNECTION))
6959+
create_info->connect_string= table->s->connect_string;
6960+
69576961
restore_record(table, s->default_values); // Empty record for DEFAULT
69586962
Create_field *def;
69596963

storage/federated/ha_federated.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2901,7 +2901,7 @@ int ha_federated::info(uint flag)
29012901

29022902
}
29032903

2904-
if (flag & HA_STATUS_AUTO)
2904+
if ((flag & HA_STATUS_AUTO) && mysql)
29052905
stats.auto_increment_value= mysql->insert_id;
29062906

29072907
mysql_free_result(result);

0 commit comments

Comments
 (0)