diff options
author | Michael Widenius <monty@askmonty.org> | 2010-11-16 19:52:44 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-11-16 19:52:44 +0200 |
commit | 0543e2e34e4e5e7dbfb89cf69e8e044e1884b07d (patch) | |
tree | 4015786f3d7045194c1cd54ad5dd43f69780b73f /sql/sql_test.cc | |
parent | 881f52fee73527524858cbc480efd30bc4502245 (diff) | |
parent | aa34668f643e78cf754bee88f48236f944d7b722 (diff) | |
download | mariadb-git-0543e2e34e4e5e7dbfb89cf69e8e044e1884b07d.tar.gz |
Merge to get make String reallocation faster
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 3 |
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; |