From a094f0ebf0294b8f964fc3d93e4d60044af8353e Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 31 Aug 2005 15:00:23 +0000 Subject: Bug 305976: Allow Bugzilla::DB sql_regexp/sql_not_regexp methods to accept string and pattern as arguments Patch By Lance Larsh r=joel, a=justdave --- checksetup.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index 5fe6cea97..b37d6e414 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -32,6 +32,7 @@ # Dave Lawrence # Max Kanat-Alexander # Joel Peshkin +# Lance Larsh # # # @@ -2446,8 +2447,8 @@ if (!($sth->fetchrow_arrayref()->[0])) { "SELECT longdescs.bug_id, thetext " . "FROM longdescs " . "LEFT JOIN bugs using(bug_id) " . - "WHERE (thetext " . $dbh->sql_regexp . - " '[.*.]{3} This bug has been marked as a duplicate of [[:digit:]]+ [.*.]{3}') " . + "WHERE (" . $dbh->sql_regexp("thetext", + "'[.*.]{3} This bug has been marked as a duplicate of [[:digit:]]+ [.*.]{3}'") . ") " . "AND (resolution = 'DUPLICATE') " . "ORDER BY longdescs.bug_when"); $sth->execute(); -- cgit v1.2.3-24-g4f1b