From ed06117b2cb8aa31491342f9fdcb402c2fc24666 Mon Sep 17 00:00:00 2001 From: Moshe Weitzman Date: Thu, 14 Apr 2022 10:28:23 -0400 Subject: [PATCH] Fix #5121. watchdog:tail throws sql exception when using options or argument (#5127) --- src/Drupal/Commands/core/WatchdogCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drupal/Commands/core/WatchdogCommands.php b/src/Drupal/Commands/core/WatchdogCommands.php index c8c9c307f5..6b43bfb6d9 100644 --- a/src/Drupal/Commands/core/WatchdogCommands.php +++ b/src/Drupal/Commands/core/WatchdogCommands.php @@ -133,7 +133,7 @@ public function tail(OutputInterface $output, $substring = '', $options = ['seve 'args' => [], ]; } else { - $where['where'] .= " AND wid > ?"; + $where['where'] .= " AND wid > :wid"; } $last_seen_wid = 0;