You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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'));"`
979
+
980
+
When I run `wp db search XYXYX --before_context=1 --stats`
981
+
Then STDOUT should contain:
982
+
"""
983
+
Success: Found 1 match
984
+
"""
985
+
And STDOUT should contain:
986
+
"""
987
+
:öXYXYX
988
+
"""
989
+
And STDOUT should not contain:
990
+
"""
991
+
:aöXYXYX
992
+
"""
993
+
And STDERR should be empty
994
+
995
+
When I run `wp db search XYXYX --regex --before_context=1 --stats`
0 commit comments