diff options
author | unknown <reggie@linux.site> | 2006-01-23 23:20:23 -0600 |
---|---|---|
committer | unknown <reggie@linux.site> | 2006-01-23 23:20:23 -0600 |
commit | f37545521b112444c5468fb37e00970c192000af (patch) | |
tree | eecb21b311aa2f96f89b875d3ee242a1a2988026 /sql/ha_partition.h | |
parent | 20d0d10ea2a537b3eec80b4b5e09352f84f68263 (diff) | |
download | mariadb-git-f37545521b112444c5468fb37e00970c192000af.tar.gz |
bug #14354 - data directory and index directory not working for partitions
mysql-test/r/partition_mgm_err.result:
only the single drop table since we have disabled query logging for the create table
mysql-test/t/partition_mgm_err.test:
test for bug #14354
first make sure /tmp/bug14354 is not there, then make the dir
create a partitioned table with the partition using
/tmp/bug14354 as it's data dir
we are disabling query logging since we are using $MYSQL_TEST_DIR
and we are not certain where the tmp files will be created.
sql/ha_partition.cc:
pass partition filename with pathname into
set_up_table_before_create.
remove the path from the passed in value and then append the filename
to the data_file_name or index_file_name if those values were
specified.
sql/ha_partition.h:
added partition_name_with_path to set_up_table_before_create
sql/mysql_priv.h:
move append_file_to_dir to mysql_priv.h
sql/sql_parse.cc:
moving append_file_to_dir to mysql_priv.h
sql/sql_partition.cc:
add_keyword_string was not writing keyword value with quotes
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index 03acf217419..5491df596e5 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -197,8 +197,10 @@ private: bool new_handlers_from_part_info(); bool create_handlers(); void clear_handler_file(); - void set_up_table_before_create(TABLE * table_arg, HA_CREATE_INFO * info, - uint part_id); + void set_up_table_before_create(TABLE *table_arg, + const char *partition_name_with_path, + HA_CREATE_INFO *info, + uint part_id); partition_element *find_partition_element(uint part_id); public: |