1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

remove append_escaped(), use String::append_for_single_quote() instead

This commit is contained in:
Sergei Golubchik
2014-03-26 09:41:52 +01:00
parent d0c6a05eb5
commit c73a0638c2
8 changed files with 22 additions and 70 deletions

View File

@ -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);