1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-6085 ALTER TABLE looses the connection string

This commit is contained in:
Sergei Golubchik
2014-05-01 18:27:52 +02:00
parent 26618a54fa
commit a03997db43
3 changed files with 42 additions and 0 deletions

View File

@ -7239,6 +7239,9 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
if (!(used_fields & HA_CREATE_USED_TRANSACTIONAL))
create_info->transactional= table->s->transactional;
if (!(used_fields & HA_CREATE_USED_CONNECTION))
create_info->connect_string= table->s->connect_string;
restore_record(table, s->default_values); // Empty record for DEFAULT
if ((create_info->fields_option_struct= (ha_field_option_struct**)