summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/ComponentWatching/Extension.pm2
-rw-r--r--extensions/MyDashboard/Extension.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm
index 674e0da7b..25155f90b 100644
--- a/extensions/ComponentWatching/Extension.pm
+++ b/extensions/ComponentWatching/Extension.pm
@@ -411,7 +411,7 @@ sub bugmail_recipients {
INNER JOIN components ON components.product_id = component_watch.product_id
WHERE component_prefix IS NOT NULL
AND (component_watch.product_id = ? OR component_watch.product_id = ?)
- AND components.name LIKE CONCAT(component_prefix, '%')
+ AND components.name LIKE @{[$dbh->sql_string_concat('component_prefix', q{'%'})]}
AND (components.id = ? OR components.id = ?)
");
$sth->execute(
diff --git a/extensions/MyDashboard/Extension.pm b/extensions/MyDashboard/Extension.pm
index 5278cfaa4..fc3a689bf 100644
--- a/extensions/MyDashboard/Extension.pm
+++ b/extensions/MyDashboard/Extension.pm
@@ -106,7 +106,7 @@ sub _component_watcher_ids {
WHERE product_id = ?
AND (component_id = ?
OR component_id IS NULL
- OR ? LIKE CONCAT(component_prefix, '%'))";
+ OR ? LIKE @{[$dbh->sql_string_concat('component_prefix', q{'%'})]})";
$self->{watcher_ids} ||= $dbh->selectcol_arrayref($query, undef,
$self->product_id, $self->id, $self->name);