diff options
author | eric@mysql.com <> | 2005-09-12 18:02:17 -0700 |
---|---|---|
committer | eric@mysql.com <> | 2005-09-12 18:02:17 -0700 |
commit | 1a79e25537ff1aafe82980061fcb76a1154945a9 (patch) | |
tree | 6c75268ce9925e6ce7ea68145119322cc40faafb /sql/unireg.cc | |
parent | 9f573f0ac8b85a09f731913edaa4c2025fa28f33 (diff) | |
download | mariadb-git-1a79e25537ff1aafe82980061fcb76a1154945a9.tar.gz |
Made changes to add federated CONNECTION information to the .frm file
(per Monty's patch).
Remove references to the "COMMENT" field.
WL#2414
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index a89d89426a6..18905c5368d 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -149,6 +149,15 @@ bool mysql_create_frm(THD *thd, my_string file_name, if (make_empty_rec(thd,file,create_info->db_type,create_info->table_options, create_fields,reclength, data_offset)) goto err; + if (create_info->connect_string.length) + { + char buff[2]; + int2store(buff,create_info->connect_string.length); + if (my_write(file, buff, sizeof(buff), MYF(MY_NABP)) || + my_write(file, create_info->connect_string.str, + create_info->connect_string.length, MYF(MY_NABP))) + goto err; + } VOID(my_seek(file,filepos,MY_SEEK_SET,MYF(0))); if (my_write(file,(byte*) forminfo,288,MYF_RW) || |