Commit f0f2ec30 authored by Sergey Petrunya's avatar Sergey Petrunya

Buildbot fixes:

- make sp.test work both with and without query_cache (attempt 2)
- fix compile warning in make_sort_key(), as directed by SergeiG
parent 668d79e8
...@@ -3064,7 +3064,6 @@ select @x| ...@@ -3064,7 +3064,6 @@ select @x|
@x @x
3 3
# Restore the old query cache size # Restore the old query cache size
set global query_cache_size = @qcs1|
delete from t1| delete from t1|
drop function bug9902| drop function bug9902|
drop function if exists bug9102| drop function if exists bug9102|
......
...@@ -3762,9 +3762,11 @@ select bug9902() from t1| ...@@ -3762,9 +3762,11 @@ select bug9902() from t1|
select @x| select @x|
--echo # Restore the old query cache size --echo # Restore the old query cache size
--disable_query_log
if (`select @@have_query_cache='YES'`) { if (`select @@have_query_cache='YES'`) {
set global query_cache_size = @qcs1| set global query_cache_size = @qcs1|
} }
--enable_query_log
delete from t1| delete from t1|
drop function bug9902| drop function bug9902|
......
...@@ -875,7 +875,7 @@ static void make_sortkey(register SORTPARAM *param, ...@@ -875,7 +875,7 @@ static void make_sortkey(register SORTPARAM *param,
case INT_RESULT: case INT_RESULT:
case TIME_RESULT: case TIME_RESULT:
{ {
longlong value; longlong UNINIT_VAR(value);
if (sort_field->result_type == INT_RESULT) if (sort_field->result_type == INT_RESULT)
value= item->val_int_result(); value= item->val_int_result();
else else
......
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