summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-05-01 18:27:52 +0200
committerSergei Golubchik <sergii@pisem.net>2014-05-01 18:27:52 +0200
commita03997db4329a7dea36fc94916d10b6231b6f844 (patch)
treeccaa35b8f76b869e5dc082cea8e1143991f76fa7 /sql/sql_table.cc
parent26618a54fa2be4be3711db7e128fe1d57c4233eb (diff)
downloadmariadb-git-a03997db4329a7dea36fc94916d10b6231b6f844.tar.gz
MDEV-6085 ALTER TABLE looses the connection string
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index dec010bb24f..502f1b30e8f 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -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**)