Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d9513849
Commit
d9513849
authored
Jun 03, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Buildbot fixes: let mysql-test/t/sp.test set @@query_cache_size only if the server has query cache.
parent
3fa0c9f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
mysql-test/r/sp.result
mysql-test/r/sp.result
+2
-2
mysql-test/t/sp.test
mysql-test/t/sp.test
+11
-3
No files found.
mysql-test/r/sp.result
View file @
d9513849
...
...
@@ -3051,8 +3051,7 @@ begin
set @x = @x + 1;
return @x;
end|
set @qcs1 = @@query_cache_size|
set global query_cache_size = 100000|
# Set query cache size, if we have query cache
set @x = 1|
insert into t1 values ("qc", 42)|
select bug9902() from t1|
...
...
@@ -3064,6 +3063,7 @@ bug9902()
select @x|
@x
3
# Restore the old query cache size
set global query_cache_size = @qcs1|
delete from t1|
drop function bug9902|
...
...
mysql-test/t/sp.test
View file @
d9513849
...
...
@@ -3748,15 +3748,23 @@ begin
return @x;
end|
set @qcs1 = @@query_cache_size|
set global query_cache_size = 100000|
--disable_query_log
--echo # Set query cache size, if we have query cache
if (`
select
@@
have_query_cache
=
'YES'
`) {
set @qcs1 = @@query_cache_size|
set global query_cache_size = 100000|
}
--enable_query_log
set @x = 1|
insert into t1 values ("qc", 42)|
select bug9902() from t1|
select bug9902() from t1|
select @x|
set global query_cache_size = @qcs1|
--echo # Restore the old query cache size
if (`
select
@@
have_query_cache
=
'YES'
`) {
set global query_cache_size = @qcs1|
}
delete from t1|
drop function bug9902|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment