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
481107da
Commit
481107da
authored
Feb 01, 2010
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch for Bug#50766.
parent
3faaeab1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
0 deletions
+143
-0
mysql-test/suite/sys_vars/r/binlog_direct_non_transactional_updates_basic.result
...rs/r/binlog_direct_non_transactional_updates_basic.result
+69
-0
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic.test
...vars/t/binlog_direct_non_transactional_updates_basic.test
+74
-0
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic_32.test
...s/t/binlog_direct_non_transactional_updates_basic_32.test
+0
-0
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic_64.test
...s/t/binlog_direct_non_transactional_updates_basic_64.test
+0
-0
No files found.
mysql-test/suite/sys_vars/r/binlog_direct_non_transactional_updates_basic.result
0 → 100644
View file @
481107da
SELECT @@GLOBAL.binlog_direct_non_transactional_updates;
@@GLOBAL.binlog_direct_non_transactional_updates
0
SET @start_value= @@global.binlog_direct_non_transactional_updates;
SELECT COUNT(@@GLOBAL.binlog_direct_non_transactional_updates);
COUNT(@@GLOBAL.binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(@@SESSION.binlog_direct_non_transactional_updates);
COUNT(@@SESSION.binlog_direct_non_transactional_updates)
1
1 Expected
SET @@GLOBAL.binlog_direct_non_transactional_updates=1;
SELECT @@GLOBAL.binlog_direct_non_transactional_updates;
@@GLOBAL.binlog_direct_non_transactional_updates
1
SET @@SESSION.binlog_direct_non_transactional_updates=1;
SELECT @@SESSION.binlog_direct_non_transactional_updates;
@@SESSION.binlog_direct_non_transactional_updates
1
SELECT @@GLOBAL.binlog_direct_non_transactional_updates = UCASE(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='binlog_direct_non_transactional_updates';
@@GLOBAL.binlog_direct_non_transactional_updates = UCASE(VARIABLE_VALUE)
0
1 Expected
SELECT COUNT(@@GLOBAL.binlog_direct_non_transactional_updates);
COUNT(@@GLOBAL.binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='binlog_direct_non_transactional_updates';
COUNT(VARIABLE_VALUE)
1
1 Expected
SELECT @@SESSION.binlog_direct_non_transactional_updates = UCASE(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='binlog_direct_non_transactional_updates';
@@SESSION.binlog_direct_non_transactional_updates = UCASE(VARIABLE_VALUE)
0
1 Expected
SELECT COUNT(@@SESSION.binlog_direct_non_transactional_updates);
COUNT(@@SESSION.binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(VARIABLE_VALUE)
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='binlog_direct_non_transactional_updates';
COUNT(VARIABLE_VALUE)
1
1 Expected
SELECT COUNT(@@binlog_direct_non_transactional_updates);
COUNT(@@binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(@@local.binlog_direct_non_transactional_updates);
COUNT(@@local.binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(@@SESSION.binlog_direct_non_transactional_updates);
COUNT(@@SESSION.binlog_direct_non_transactional_updates)
1
1 Expected
SELECT COUNT(@@GLOBAL.binlog_direct_non_transactional_updates);
COUNT(@@GLOBAL.binlog_direct_non_transactional_updates)
1
1 Expected
SET @@global.binlog_direct_non_transactional_updates= @start_value;
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic.test
0 → 100644
View file @
481107da
SELECT
@@
GLOBAL
.
binlog_direct_non_transactional_updates
;
####################################################################
# Displaying default value #
####################################################################
SET
@
start_value
=
@@
global
.
binlog_direct_non_transactional_updates
;
SELECT
COUNT
(
@@
GLOBAL
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
@@
SESSION
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
####################################################################
# Check if Value can set #
####################################################################
SET
@@
GLOBAL
.
binlog_direct_non_transactional_updates
=
1
;
SELECT
@@
GLOBAL
.
binlog_direct_non_transactional_updates
;
SET
@@
SESSION
.
binlog_direct_non_transactional_updates
=
1
;
SELECT
@@
SESSION
.
binlog_direct_non_transactional_updates
;
#################################################################
# Check if the value in GLOBAL Table matches value in variable #
#################################################################
SELECT
@@
GLOBAL
.
binlog_direct_non_transactional_updates
=
UCASE
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'binlog_direct_non_transactional_updates'
;
--
echo
1
Expected
SELECT
COUNT
(
@@
GLOBAL
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
GLOBAL_VARIABLES
WHERE
VARIABLE_NAME
=
'binlog_direct_non_transactional_updates'
;
--
echo
1
Expected
#################################################################
# Check if the value in SESSION Table matches value in variable #
#################################################################
SELECT
@@
SESSION
.
binlog_direct_non_transactional_updates
=
UCASE
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
SESSION_VARIABLES
WHERE
VARIABLE_NAME
=
'binlog_direct_non_transactional_updates'
;
--
echo
1
Expected
SELECT
COUNT
(
@@
SESSION
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
VARIABLE_VALUE
)
FROM
INFORMATION_SCHEMA
.
SESSION_VARIABLES
WHERE
VARIABLE_NAME
=
'binlog_direct_non_transactional_updates'
;
--
echo
1
Expected
################################################################################
# Check if binlog_direct_non_transactional_updates can be accessed with and #
# without @@ sign #
################################################################################
SELECT
COUNT
(
@@
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
@@
local
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
@@
SESSION
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SELECT
COUNT
(
@@
GLOBAL
.
binlog_direct_non_transactional_updates
);
--
echo
1
Expected
SET
@@
global
.
binlog_direct_non_transactional_updates
=
@
start_value
;
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic_32.test
deleted
100644 → 0
View file @
3faaeab1
mysql-test/suite/sys_vars/t/binlog_direct_non_transactional_updates_basic_64.test
deleted
100644 → 0
View file @
3faaeab1
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