mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Always save/restore connect string.
This commit is contained in:
15
sql/table.cc
15
sql/table.cc
@@ -316,17 +316,14 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
|
||||
my_free(buff, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
if (share->db_type == DB_TYPE_FEDERATED_DB)
|
||||
share->connect_string.length= uint2korr(buff);
|
||||
if (! (share->connect_string.str= strmake_root(&outparam->mem_root,
|
||||
next_chunk + 2, share->connect_string.length)))
|
||||
{
|
||||
share->connect_string.length= uint2korr(buff);
|
||||
if (! (share->connect_string.str= strmake_root(&outparam->mem_root,
|
||||
next_chunk + 2, share->connect_string.length)))
|
||||
{
|
||||
my_free(buff, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
next_chunk+= share->connect_string.length + 2;
|
||||
my_free(buff, MYF(0));
|
||||
goto err;
|
||||
}
|
||||
next_chunk+= share->connect_string.length + 2;
|
||||
buff_end= buff + n_length;
|
||||
if (next_chunk + 2 < buff_end)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user