summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-13 13:12:41 +0200
committermkanat%bugzilla.org <>2008-08-13 13:12:41 +0200
commita9fd0d7e538ed6c14f4f9b8a855e91393f1b902d (patch)
tree546910c243a74f06c7bc8a7d21aa51e4bb491662 /Bugzilla/DB
parent09a4647650851390eeef594c6b56ca61d04d6d1b (diff)
downloadbugzilla-a9fd0d7e538ed6c14f4f9b8a855e91393f1b902d.tar.gz
bugzilla-a9fd0d7e538ed6c14f4f9b8a855e91393f1b902d.tar.xz
Bug 442882: Populating bugs_fulltext can be very slow on large installations
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Mysql.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index 43646d8de..d645d79c5 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/Bugzilla/DB/Mysql.pm
@@ -106,6 +106,15 @@ sub bz_last_key {
return $last_insert_id;
}
+sub sql_group_concat {
+ my ($self, $column, $separator) = @_;
+ my $sep_sql;
+ if ($separator) {
+ $sep_sql = " SEPARATOR $separator";
+ }
+ return "GROUP_CONCAT($column$sep_sql)";
+}
+
sub sql_regexp {
my ($self, $expr, $pattern, $nocheck) = @_;