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
7ea12742
Commit
7ea12742
authored
Nov 12, 2021
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '10.2' into 10.3
parents
524b4a89
628c281d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
mysql-test/main/mysql_binary_zero_insert.result
mysql-test/main/mysql_binary_zero_insert.result
+2
-2
mysql-test/main/mysql_binary_zero_insert.test
mysql-test/main/mysql_binary_zero_insert.test
+3
-3
storage/myisam/mi_delete.c
storage/myisam/mi_delete.c
+8
-0
No files found.
mysql-test/main/mysql_binary_zero_insert.result
View file @
7ea12742
...
@@ -32,8 +32,8 @@ COUNT(*)=8
...
@@ -32,8 +32,8 @@ COUNT(*)=8
# Note: We only look for 00 because the 5c only served as an escape
# Note: We only look for 00 because the 5c only served as an escape
# in parsing.
# in parsing.
#
#
# MYSQL_DUMP test tb --hex-blob
| grep INSERT
> MYSQL_TMP_DIR/dump.sql
# MYSQL_DUMP test tb --hex-blob > MYSQL_TMP_DIR/dump.sql
FOUND
10 /00
/ in dump.sql
FOUND
8 /\([0-9]+,0x([1-9][0-9])*00([1-9][0-9])*\)
/ in dump.sql
#
#
# Ensure data consistency on mysqlbinlog replay
# Ensure data consistency on mysqlbinlog replay
#
#
...
...
mysql-test/main/mysql_binary_zero_insert.test
View file @
7ea12742
...
@@ -114,9 +114,9 @@ SELECT COUNT(*)=8 from tb;
...
@@ -114,9 +114,9 @@ SELECT COUNT(*)=8 from tb;
--
echo
# Note: We only look for 00 because the 5c only served as an escape
--
echo
# Note: We only look for 00 because the 5c only served as an escape
--
echo
# in parsing.
--
echo
# in parsing.
--
echo
#
--
echo
#
--
echo
# MYSQL_DUMP test tb --hex-blob
| grep INSERT
> MYSQL_TMP_DIR/dump.sql
--
echo
# MYSQL_DUMP test tb --hex-blob > MYSQL_TMP_DIR/dump.sql
--
exec
$MYSQL_DUMP
test
tb
--
hex
-
blob
|
grep
INSERT
>
$MYSQL_TMP_DIR
/
dump
.
sql
--
exec
$MYSQL_DUMP
test
tb
--
hex
-
blob
>
$MYSQL_TMP_DIR
/
dump
.
sql
--
let
SEARCH_PATTERN
=
00
--
let
SEARCH_PATTERN
=
\
([
0
-
9
]
+
,
0
x
([
1
-
9
][
0
-
9
])
*
00
([
1
-
9
][
0
-
9
])
*
\
)
--
let
SEARCH_FILE
=
$MYSQL_TMP_DIR
/
dump
.
sql
--
let
SEARCH_FILE
=
$MYSQL_TMP_DIR
/
dump
.
sql
--
source
include
/
search_pattern_in_file
.
inc
--
source
include
/
search_pattern_in_file
.
inc
...
...
storage/myisam/mi_delete.c
View file @
7ea12742
...
@@ -767,6 +767,10 @@ static int underflow(register MI_INFO *info, register MI_KEYDEF *keyinfo,
...
@@ -767,6 +767,10 @@ static int underflow(register MI_INFO *info, register MI_KEYDEF *keyinfo,
returns how many chars was removed or 0 on error
returns how many chars was removed or 0 on error
*/
*/
#if defined(_MSC_VER) && defined(_M_X64) && _MSC_VER >= 1930
#pragma optimize("g", off)
#endif
static
uint
remove_key
(
MI_KEYDEF
*
keyinfo
,
uint
nod_flag
,
static
uint
remove_key
(
MI_KEYDEF
*
keyinfo
,
uint
nod_flag
,
uchar
*
keypos
,
/* Where key starts */
uchar
*
keypos
,
/* Where key starts */
uchar
*
lastkey
,
/* key to be removed */
uchar
*
lastkey
,
/* key to be removed */
...
@@ -891,3 +895,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
...
@@ -891,3 +895,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
(
uint
)
(
page_end
-
start
-
s_length
));
(
uint
)
(
page_end
-
start
-
s_length
));
DBUG_RETURN
((
uint
)
s_length
);
DBUG_RETURN
((
uint
)
s_length
);
}
/* remove_key */
}
/* remove_key */
#if defined(_MSC_VER) && defined(_M_X64) && _MSC_VER >= 1930
#pragma optimize("",on)
#endif
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