summaryrefslogtreecommitdiff
path: root/sql/sql_string.h
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_string.h
parentd0c6a05eb5cc6b856a523725607defb229252885 (diff)
downloadmariadb-git-c73a0638c233f421bc17705d94e934d8fccfbe19.tar.gz
remove append_escaped(), use String::append_for_single_quote() instead
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r--sql/sql_string.h9
1 files changed, 9 insertions, 0 deletions
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);