From c73a0638c233f421bc17705d94e934d8fccfbe19 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 26 Mar 2014 09:41:52 +0100 Subject: remove append_escaped(), use String::append_for_single_quote() instead --- sql/sql_string.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sql/sql_string.h') diff --git a/sql/sql_string.h b/sql/sql_string.h index 65c5961a1d0..77712c09805 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -496,7 +496,16 @@ public: return FALSE; } void print(String *print); + bool append_for_single_quote(const char *st, uint len); + bool append_for_single_quote(const String *s) + { + return append_for_single_quote(s->ptr(), s->length()); + } + bool append_for_single_quote(const char *st) + { + return append_for_single_quote(st, strlen(st)); + } /* Swap two string objects. Efficient way to exchange data without memcpy. */ void swap(String &s); -- cgit v1.2.1