diff options
author | mkanat%kerio.com <> | 2005-06-09 11:42:44 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-06-09 11:42:44 +0000 |
commit | 461633bacc4f1c47b50e67219a7c8ec0a16bad7d (patch) | |
tree | 82c9a363915083ba6d786790bc38973b4f00d8e0 /checksetup.pl | |
parent | Bug 225042: If sendmail dies while processing a duplicate it corrupts the dup... (diff) | |
download | bugzilla-461633bacc4f1c47b50e67219a7c8ec0a16bad7d.tar.gz bugzilla-461633bacc4f1c47b50e67219a7c8ec0a16bad7d.tar.bz2 bugzilla-461633bacc4f1c47b50e67219a7c8ec0a16bad7d.zip |
Bug 291803: PostgreSQL dies when you insert a string longer than 2700 characters into an indexed field
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=jouni, a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl index 7151b86bf..d1068bbbd 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -3664,7 +3664,10 @@ if (!$dbh->bz_index_info('bugs', 'bugs_short_desc_idx')) { $dbh->bz_add_index('bugs', 'bugs_short_desc_idx', {TYPE => 'FULLTEXT', FIELDS => [qw(short_desc)]}); } -if (!$dbh->bz_index_info('longdescs', 'longdescs_thetext_idx')) { +# Right now, we only create the "thetext" index on MySQL. +if ($dbh->isa('Bugzilla::DB::Mysql') + && !$dbh->bz_index_info('longdescs', 'longdescs_thetext_idx')) +{ print "Adding full-text index for thetext column in longdescs table...\n"; $dbh->bz_add_index('longdescs', 'longdescs_thetext_idx', {TYPE => 'FULLTEXT', FIELDS => [qw(thetext)]}); |