diff options
author | unknown <monty@mysql.com> | 2005-10-13 19:40:46 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-10-13 19:40:46 +0300 |
commit | 79538fb62f8b10190a3b2248d22eaaade4cd1e4d (patch) | |
tree | 1c1d39c480d1b8421f41d2335a741a0045805630 /sql/unireg.cc | |
parent | 706157f025c8bfe01faa3783a54eecb8884b0d3f (diff) | |
download | mariadb-git-79538fb62f8b10190a3b2248d22eaaade4cd1e4d.tar.gz |
Fixes during review of new pushed code
sql/handler.cc:
Indentation fixes
sql/item.cc:
Remove not needed test of *ref (If ref is set it always points to a valid address)
sql/table.cc:
Indentation changes
Moved buff_end directly after 'buff' assignment to make code more clear
sql/unireg.cc:
Indentation changes
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index 3420e359c27..065f8583f71 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -119,10 +119,10 @@ bool mysql_create_frm(THD *thd, my_string file_name, reclength=uint2korr(forminfo+266); /* Calculate extra data segment length */ - str_db_type.str= (char *)ha_get_storage_engine(create_info->db_type); + str_db_type.str= (char *) ha_get_storage_engine(create_info->db_type); str_db_type.length= strlen(str_db_type.str); - create_info->extra_size= 2 + str_db_type.length; - create_info->extra_size+= create_info->connect_string.length + 2; + create_info->extra_size= (2 + str_db_type.length + + 2 + create_info->connect_string.length); if ((file=create_frm(thd, file_name, db, table, reclength, fileinfo, create_info, keys)) < 0) |