summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-11-16 19:52:44 +0200
committerMichael Widenius <monty@askmonty.org>2010-11-16 19:52:44 +0200
commit0543e2e34e4e5e7dbfb89cf69e8e044e1884b07d (patch)
tree4015786f3d7045194c1cd54ad5dd43f69780b73f /sql/sql_test.cc
parent881f52fee73527524858cbc480efd30bc4502245 (diff)
parentaa34668f643e78cf754bee88f48236f944d7b722 (diff)
downloadmariadb-git-0543e2e34e4e5e7dbfb89cf69e8e044e1884b07d.tar.gz
Merge to get make String reallocation faster
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index 401a413b2dc..d26c252f4e0 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -57,9 +57,10 @@ print_where(COND *cond,const char *info, enum_query_type query_type)
{
if (cond)
{
- char buff[256];
+ char buff[1024];
String str(buff,(uint32) sizeof(buff), system_charset_info);
str.length(0);
+ str.extra_allocation(1024);
cond->print(&str, query_type);
str.append('\0');
DBUG_LOCK_FILE;