diff options
author | mkanat%kerio.com <> | 2005-06-09 13:42:44 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-06-09 13:42:44 +0200 |
commit | 461633bacc4f1c47b50e67219a7c8ec0a16bad7d (patch) | |
tree | 82c9a363915083ba6d786790bc38973b4f00d8e0 /Bugzilla/DB | |
parent | b2ced74b4357baa441e73c8d09858925635dba4a (diff) | |
download | bugzilla-461633bacc4f1c47b50e67219a7c8ec0a16bad7d.tar.gz bugzilla-461633bacc4f1c47b50e67219a7c8ec0a16bad7d.tar.xz |
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 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Pg.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index 86c5497cd..25378ccc3 100644 --- a/Bugzilla/DB/Pg.pm +++ b/Bugzilla/DB/Pg.pm @@ -197,4 +197,18 @@ sub bz_unlock_tables { } } +##################################################################### +# Custom Database Setup +##################################################################### + +sub bz_setup_database { + my $self = shift; + $self->SUPER::bz_setup_database(@_); + + # PostgreSQL doesn't like having *any* index on the thetext + # field, because it can't have index data longer than 2770 + # characters on that field. + $self->bz_drop_index('longdescs', 'longdescs_thetext_idx'); +} + 1; |