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 --- storage/federatedx/ha_federatedx.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storage/federatedx') diff --git a/storage/federatedx/ha_federatedx.cc b/storage/federatedx/ha_federatedx.cc index 97cabd5f152..8d41ca2d1b3 100644 --- a/storage/federatedx/ha_federatedx.cc +++ b/storage/federatedx/ha_federatedx.cc @@ -925,7 +925,7 @@ static bool emit_key_part_element(String *to, KEY_PART_INFO *part, uint blob_length= uint2korr(ptr); blob.set_quick((char*) ptr+HA_KEY_BLOB_LENGTH, blob_length, &my_charset_bin); - if (append_escaped(to, &blob)) + if (to->append_for_single_quote(&blob)) DBUG_RETURN(1); } else if (part->key_part_flag & HA_VAR_LENGTH_PART) @@ -934,7 +934,7 @@ static bool emit_key_part_element(String *to, KEY_PART_INFO *part, uint var_length= uint2korr(ptr); varchar.set_quick((char*) ptr+HA_KEY_BLOB_LENGTH, var_length, &my_charset_bin); - if (append_escaped(to, &varchar)) + if (to->append_for_single_quote(&varchar)) DBUG_RETURN(1); } else @@ -946,7 +946,7 @@ static bool emit_key_part_element(String *to, KEY_PART_INFO *part, if (field->result_type() == STRING_RESULT) { - if (append_escaped(to, res)) + if (to->append_for_single_quote(res)) DBUG_RETURN(1); } else if (to->append(res->ptr(), res->length())) -- cgit v1.2.1