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
bb1e8e43
Commit
bb1e8e43
authored
Jan 31, 2017
by
Sachin Setiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mdev-4774- Fix tests cases
parent
1ebfecee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
46 deletions
+51
-46
mysql-test/suite/binlog/r/binlog_max_binlog_stmt_cache_size.result
...t/suite/binlog/r/binlog_max_binlog_stmt_cache_size.result
+22
-31
mysql-test/suite/binlog/t/binlog_max_binlog_stmt_cache_size.test
...est/suite/binlog/t/binlog_max_binlog_stmt_cache_size.test
+29
-15
No files found.
mysql-test/suite/binlog/r/binlog_max_binlog_stmt_cache_size.result
View file @
bb1e8e43
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547520;
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547519;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709547519'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709543424
set global max_binlog_stmt_cache_size= 18446744073709551615;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551615'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709551614;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551614'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709551616;
ERROR 42000: Incorrect argument type to variable 'max_binlog_stmt_cache_size'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547520;
#
# MDEV-4774: Strangeness with max_binlog_stmt_cache_size Settings
#
CALL mtr.add_suppression("unsigned value 18446744073709547520 adjusted to 4294963200");
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @cache_size= @@max_binlog_stmt_cache_size;
SET @@global.max_binlog_stmt_cache_size= @cache_size+1;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @@global.max_binlog_stmt_cache_size = @cache_size+4095;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @@global.max_binlog_stmt_cache_size= @cache_size-1;
SELECT @@global.max_binlog_stmt_cache_size = @cache_size-4096;
@@global.max_binlog_stmt_cache_size = @cache_size-4096
1
SET @@global.max_binlog_stmt_cache_size= @cache_size;
# End of test
mysql-test/suite/binlog/t/binlog_max_binlog_stmt_cache_size.test
View file @
bb1e8e43
source
include
/
have_log_bin
.
inc
;
select
@@
max_binlog_stmt_cache_size
;
--
let
$cache_size
=
`select @@max_binlog_stmt_cache_size;`
--
echo
#
--
echo
# MDEV-4774: Strangeness with max_binlog_stmt_cache_size Settings
--
echo
#
set
global
max_binlog_stmt_cache_size
=
18446744073709547520
;
select
@@
max_binlog_stmt_cache_size
;
CALL
mtr
.
add_suppression
(
"unsigned value 18446744073709547520 adjusted to 4294963200"
);
set
global
max_binlog_stmt_cache_size
=
18446744073709547519
;
select
@@
max_binlog_stmt_cache_size
;
--
replace_result
18446744073709547520
MAX_BINLOG_STMT_CACHE_SIZE
4294963200
MAX_BINLOG_STMT_CACHE_SIZE
SELECT
@@
global
.
max_binlog_stmt_cache_size
;
set
global
max_binlog_stmt_cache_size
=
18446744073709551615
;
select
@@
max_binlog_stmt_cache_size
;
# Save the initial value of @@global.max_binlog_stmt_cache_size.
--
replace_result
18446744073709547520
MAX_BINLOG_STMT_CACHE_SIZE
4294963200
MAX_BINLOG_STMT_CACHE_SIZE
SET
@
cache_size
=
@@
max_binlog_stmt_cache_size
;
set
global
max_binlog_stmt_cache_size
=
18446744073709551614
;
select
@@
max_binlog_stmt_cache_size
;
--
disable_warnings
SET
@@
global
.
max_binlog_stmt_cache_size
=
@
cache_size
+
1
;
--
enable_warnings
--
replace_result
18446744073709547520
MAX_BINLOG_STMT_CACHE_SIZE
4294963200
MAX_BINLOG_STMT_CACHE_SIZE
SELECT
@@
global
.
max_binlog_stmt_cache_size
;
--
error
ER_WRONG_TYPE_FOR_VAR
set
global
max_binlog_stmt_cache_size
=
18446744073709551616
;
select
@@
max_binlog_stmt_cache_size
;
--
disable_warnings
SET
@@
global
.
max_binlog_stmt_cache_size
=
@
cache_size
+
4095
;
--
enable_warnings
--
replace_result
4294963200
MAX_BINLOG_STMT_CACHE_SIZE
18446744073709547520
MAX_BINLOG_STMT_CACHE_SIZE
SELECT
@@
global
.
max_binlog_stmt_cache_size
;
--
disable_warnings
SET
@@
global
.
max_binlog_stmt_cache_size
=
@
cache_size
-
1
;
--
enable_warnings
SELECT
@@
global
.
max_binlog_stmt_cache_size
=
@
cache_size
-
4096
;
# Restore @@global.max_binlog_stmt_cache_size to its initial value.
SET
@@
global
.
max_binlog_stmt_cache_size
=
@
cache_size
;
--
echo
# End of test
--
eval
set
global
max_binlog_stmt_cache_size
=
$cache_size
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