summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-26 09:41:52 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-26 09:41:52 +0100
commitc73a0638c233f421bc17705d94e934d8fccfbe19 (patch)
tree473650aff8d7f0e9366ff4b15b3dffee41d6188c /sql/sql_partition.cc
parentd0c6a05eb5cc6b856a523725607defb229252885 (diff)
downloadmariadb-git-c73a0638c233f421bc17705d94e934d8fccfbe19.tar.gz
remove append_escaped(), use String::append_for_single_quote() instead
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index a9846df3b02..1ce952b9030 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -67,7 +67,6 @@
// table_to_filename
// mysql_*_alter_copy_data
#include "opt_range.h" // store_key_image_to_rec
-#include "sql_analyse.h" // append_escaped
#include "sql_alter.h" // Alter_table_ctx
#include <algorithm>
@@ -1935,10 +1934,9 @@ static int add_uint(File fptr, ulonglong number)
*/
static int add_quoted_string(File fptr, const char *quotestr)
{
- String orgstr(quotestr, system_charset_info);
String escapedstr;
int err= add_string(fptr, "'");
- err+= append_escaped(&escapedstr, &orgstr);
+ err+= escapedstr.append_for_single_quote(quotestr);
err+= add_string(fptr, escapedstr.c_ptr_safe());
return err + add_string(fptr, "'");
}