Skip to content

Commit 44b9d79

Browse files
committed
Try 8MB large data (innodb redo log file size dependent).
1 parent 98fd965 commit 44b9d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/db-search.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,8 @@ Feature: Search through the database
974974
Scenario: Search with large data
975975
Given a WP install
976976
# Note "_utf8 X'CC88'" is combining umlaut. Doing it this way as non-ASCII stuff gets stripped due to (eventually) been put thru `escapeshellarg()` with a default C locale.
977-
# Also restricted by MySQL's default `max_allowed_packet` size to 16 MB - 1 (0xFFFFFF).
978-
And I run `wp db query "INSERT INTO wp_options (option_name, option_value) VALUES ('opt_large', CONCAT(REPEAT('a', 1024 * 1024 * 16 - 9), 'o', _utf8 X'CC88', 'XYXYX'));"`
977+
# Also restricted by default MySQL values for the version-dependent size of the innodb redo log file (max 10% one transaction) and `max_allowed_packet` size (16MB).
978+
And I run `wp db query "INSERT INTO wp_options (option_name, option_value) VALUES ('opt_large', CONCAT(REPEAT('a', 1024 * 1024 * 8 - 9), 'o', _utf8 X'CC88', 'XYXYX'));"`
979979

980980
When I run `wp db search XYXYX --before_context=1 --stats`
981981
Then STDOUT should contain:

0 commit comments

Comments
 (0)