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 --- Bugzilla/DB.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index 6ec377cd7..fd846d2a5 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -24,6 +24,7 @@ # Christopher Aillon # Tomas Kopal # Max Kanat-Alexander +# Lance Larsh package Bugzilla::DB; @@ -1081,7 +1082,8 @@ formatted SQL command have prefix C. All other methods have prefix C. searches (case insensitive) in format suitable for a given database. Abstract method, should be overriden by database specific code. - Params: none + Params: $expr = SQL expression for the text to be searched (scalar) + $pattern = the regular expression to search for (scalar) Returns: formatted SQL for regular expression search (e.g. REGEXP) (scalar) @@ -1091,7 +1093,8 @@ formatted SQL command have prefix C. All other methods have prefix C. regex searches (case insensitive) in format suitable for a given database. Abstract method, should be overriden by database specific code. - Params: none + Params: $expr = SQL expression for the text to be searched (scalar) + $pattern = the regular expression to search for (scalar) Returns: formatted SQL for negative regular expression search (e.g. NOT REGEXP) (scalar) -- cgit v1.2.3-24-g4f1b