From 8e52972a14bb87c0a3f6cd9f683c59a3fd3a06f6 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 26 Jan 2006 15:23:53 +0300 Subject: [PATCH 1/2] Fixes a build problem of mysqlslap by adding a dependency to mysqlclient & mysys VC++Files/client/mysqlslap.vcproj: Explicit library specification removed from project file VC++Files/mysql.sln: Dependency to mysqlclient & mysys is added for mysqlslap in mysql.sln --- VC++Files/client/mysqlslap.vcproj | 2 +- VC++Files/mysql.sln | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VC++Files/client/mysqlslap.vcproj b/VC++Files/client/mysqlslap.vcproj index 581a852b170..ff0d9a437ed 100644 --- a/VC++Files/client/mysqlslap.vcproj +++ b/VC++Files/client/mysqlslap.vcproj @@ -162,7 +162,7 @@ Name="VCCustomBuildTool"/> Date: Thu, 26 Jan 2006 06:37:25 -0600 Subject: [PATCH 2/2] 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,