From af738870d4ec0f6e67d06718f65f11f0f115966a Mon Sep 17 00:00:00 2001 From: Mattias Jonsson Date: Wed, 3 Mar 2010 15:58:12 +0100 Subject: [PATCH] Fix for debug print of null string (fails on pb for solaris debug_max) --- 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 877cf070abd..e0118d55d7b 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -1894,7 +1894,7 @@ uint ha_partition::del_ren_cre_table(const char *from, if (get_from_handler_file(from, ha_thd()->mem_root)) DBUG_RETURN(TRUE); DBUG_ASSERT(m_file_buffer); - DBUG_PRINT("enter", ("from: (%s) to: (%s)", from, to)); + DBUG_PRINT("enter", ("from: (%s) to: (%s)", from, to ? to : "(nil)")); name_buffer_ptr= m_name_buffer_ptr; file= m_file; if (to == NULL && table_arg == NULL)