From cc90212fc9730fc70b2eaccc0f3301d3b6132e06 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Jan 2006 06:37:25 -0600 Subject: [PATCH] using const char * as the output of strrchr to make solaris compiler happy. --- sql/ha_partition.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 4bca3365cb2..84e9c779c7d 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -1780,7 +1780,7 @@ void ha_partition::set_up_table_before_create(TABLE *table, return; // Fatal error table->s->max_rows= part_elem->part_max_rows; table->s->min_rows= part_elem->part_min_rows; - char *partition_name= strrchr(partition_name_with_path, FN_LIBCHAR); + const char *partition_name= strrchr(partition_name_with_path, FN_LIBCHAR); if (part_elem->index_file_name) append_file_to_dir(current_thd, (const char**)&part_elem->index_file_name,