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
a8406056
Commit
a8406056
authored
May 19, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
c93f8aca
44c8d849
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_frag.result
mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_frag.result
+3
-0
mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_frag.test
mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_frag.test
+5
-0
sql/sql_binlog.cc
sql/sql_binlog.cc
+2
-1
No files found.
mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_frag.result
View file @
a8406056
...
...
@@ -20,5 +20,8 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp
SET @binlog_fragment_0='012345';
BINLOG @binlog_fragment_0, @binlog_fragment_not_exist;
ERROR 42000: Incorrect argument type to variable 'binlog_fragment_not_exist'
SET @a= '42';
BINLOG @a, @a;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use
# Cleanup
DROP TABLE t;
mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_frag.test
View file @
a8406056
...
...
@@ -41,6 +41,11 @@ SET @binlog_fragment_0='012345';
--
error
ER_WRONG_TYPE_FOR_VAR
BINLOG
@
binlog_fragment_0
,
@
binlog_fragment_not_exist
;
# MDEV-22520
SET
@
a
=
'42'
;
--
error
ER_SYNTAX_ERROR
BINLOG
@
a
,
@
a
;
--
echo
# Cleanup
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog
.
sql
DROP
TABLE
t
;
sql/sql_binlog.cc
View file @
a8406056
...
...
@@ -158,8 +158,9 @@ int binlog_defragment(THD *thd)
memcpy
(
thd
->
lex
->
comment
.
str
+
gathered_length
,
entry
[
k
]
->
value
,
entry
[
k
]
->
length
);
gathered_length
+=
entry
[
k
]
->
length
;
update_hash
(
entry
[
k
],
true
,
NULL
,
0
,
STRING_RESULT
,
&
my_charset_bin
,
0
);
}
for
(
uint
k
=
0
;
k
<
2
;
k
++
)
update_hash
(
entry
[
k
],
true
,
NULL
,
0
,
STRING_RESULT
,
&
my_charset_bin
,
0
);
DBUG_ASSERT
(
gathered_length
==
thd
->
lex
->
comment
.
length
);
...
...
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