From 062a3176e7d985540e1051a35f15c313c0296b47 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Thu, 12 Apr 2018 02:57:19 +0300 Subject: Remove mem_alloc_error() As thd->alloc() and new automatically calls my_error(ER_OUTOFMEORY) there is no reason to call mem_alloc_error() Other things: - Fixed bug in mysql_unpack_partition() where lex.part_info was changed even if it would be a null pointer --- sql/sql_partition.h | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/sql_partition.h') diff --git a/sql/sql_partition.h b/sql/sql_partition.h index 4315c84e4f0..170ae8ccee1 100644 --- a/sql/sql_partition.h +++ b/sql/sql_partition.h @@ -133,7 +133,6 @@ Item* convert_charset_partition_constant(Item *item, CHARSET_INFO *cs); @param[in] table Table containing read_set and fields for the row. */ void append_row_to_str(String &str, const uchar *row, TABLE *table); -void mem_alloc_error(size_t size); void truncate_partition_filename(char *path); /* -- cgit v1.2.1