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
An exception is thrown instead of output. Using MariaDB the exception message is:
SQLSTATE[HY093]: Invalid parameter number: mixed name and positional parameters: SELECT "w".*
FROM
"watchdog" "w"
WHERE (message LIKE :filter AND wid > ?)
ORDER BY "wid" DESC
LIMIT 10, OFFSET 0; Array
(
[:filter] => "%anything%"
[:wid] => 0
)
Workaround
No
System Configuration
Q
A
Drush version?
10.6.2 or greater (code has not changed since #4767)
Describe the bug
Running
watchdog:tail
with options or arguments throws an exception.To Reproduce
Any of the following:
./vendor/bin/drush watchdog:tail --severity=3
./vendor/bin/drush watchdog:tail --type=php
./vendor/bin/drush watchdog:tail "anything"
Expected behavior
The command should succeed without an exception.
Actual behavior
An exception is thrown instead of output. Using MariaDB the exception message is:
Workaround
No
System Configuration
Additional information
https://github.com/drush-ops/drush/blame/11.x/src/Drupal/Commands/core/WatchdogCommands.php#L147
This should be changed from a positional parameter to a named parameter.
The text was updated successfully, but these errors were encountered: