Commit f7d6a2ed authored by Michael Widenius's avatar Michael Widenius

Fixed trival bug introduced in last patch (buffer was not extended)

parent 5a2f40d4
...@@ -489,7 +489,11 @@ int ha_tina::encode_quote(uchar *buf) ...@@ -489,7 +489,11 @@ int ha_tina::encode_quote(uchar *buf)
ptr= attribute.ptr(); ptr= attribute.ptr();
end_ptr= attribute.length() + ptr; end_ptr= attribute.length() + ptr;
if (buffer.realloc(attribute.length()*2+2)) /*
Ensure that buffer is big enough. This will also speed things up
as we don't have to do any new allocation in the loop below
*/
if (buffer.realloc(buffer.length() + attribute.length()*2+2))
return 0; // Failure return 0; // Failure
buffer.append('"'); buffer.append('"');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment