mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-26991: CURRENT_TEST: main.mysql_binary_zero_insert 'grep' is not recognized as an internal or external command, operable program or batch file.
Removed grep from mysqldump command stream and instead, extend the search_file pattern to search for rows containing binary zeros instead of any occurance of '00' in the input
This commit is contained in:
parent
d6d1a1fc21
commit
3163d9e60c
2 changed files with 5 additions and 5 deletions
|
@ -32,8 +32,8 @@ COUNT(*)=8
|
|||
# Note: We only look for 00 because the 5c only served as an escape
|
||||
# in parsing.
|
||||
#
|
||||
# MYSQL_DUMP test tb --hex-blob | grep INSERT > MYSQL_TMP_DIR/dump.sql
|
||||
FOUND 10 /00/ in dump.sql
|
||||
# MYSQL_DUMP test tb --hex-blob > MYSQL_TMP_DIR/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
|
||||
#
|
||||
|
|
|
@ -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 # in parsing.
|
||||
--echo #
|
||||
--echo # MYSQL_DUMP test tb --hex-blob | grep INSERT > MYSQL_TMP_DIR/dump.sql
|
||||
--exec $MYSQL_DUMP test tb --hex-blob | grep INSERT > $MYSQL_TMP_DIR/dump.sql
|
||||
--let SEARCH_PATTERN= 00
|
||||
--echo # MYSQL_DUMP test tb --hex-blob > MYSQL_TMP_DIR/dump.sql
|
||||
--exec $MYSQL_DUMP test tb --hex-blob > $MYSQL_TMP_DIR/dump.sql
|
||||
--let SEARCH_PATTERN= \([0-9]+,0x([1-9][0-9])*00([1-9][0-9])*\)
|
||||
--let SEARCH_FILE= $MYSQL_TMP_DIR/dump.sql
|
||||
--source include/search_pattern_in_file.inc
|
||||
|
||||
|
|
Loading…
Reference in a new issue