diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-07-12 19:58:06 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-07-12 19:58:06 +0200 |
commit | 590ba3274772ff3450e229ecc77fdd3191ee40dc (patch) | |
tree | c5d66caac5a73c5d0be8e3b97ae112bd864f8349 /sql/ha_partition.cc | |
parent | 487b3ba7422f53441ab564bc8af0be28977a1f3b (diff) | |
download | mariadb-git-590ba3274772ff3450e229ecc77fdd3191ee40dc.tar.gz |
federated.partition test - fix the bad merge
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 65eacf94823..c06520df5fd 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -1465,6 +1465,7 @@ int ha_partition::prepare_new_partition(TABLE *tbl, if ((error= set_up_table_before_create(tbl, part_name, create_info, p_elem))) goto error_create; + tbl->s->connect_string = p_elem->connect_string; if ((error= file->ha_create(part_name, tbl, create_info))) { /* @@ -3421,9 +3422,11 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked) { create_partition_name(name_buff, name, name_buffer_ptr, NORMAL_PART_NAME, FALSE); + table->s->connect_string = m_connect_string[(uint)(file-m_file)]; if ((error= (*file)->ha_open(table, name_buff, mode, test_if_locked | HA_OPEN_NO_PSI_CALL))) goto err_handler; + bzero(&table->s->connect_string, sizeof(LEX_STRING)); if (m_file == file) m_num_locks= (*file)->lock_count(); DBUG_ASSERT(m_num_locks == (*file)->lock_count()); |