Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d4464fba
Commit
d4464fba
authored
Sep 04, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285705: [PostgreSQL] Index on some text columns on Postgres could use LOWER
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=joel, a=justdave
parent
25ede8ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Pg.pm
Bugzilla/DB/Pg.pm
+5
-0
No files found.
Bugzilla/DB/Pg.pm
View file @
d4464fba
...
...
@@ -217,6 +217,11 @@ sub bz_setup_database {
# field, because it can't have index data longer than 2770
# characters on that field.
$self
->
bz_drop_index
(
'longdescs'
,
'longdescs_thetext_idx'
);
# PostgreSQL also wants an index for calling LOWER on
# login_name, which we do with sql_istrcmp all over the place.
$self
->
bz_add_index
(
'profiles'
,
'profiles_login_name_lower_idx'
,
{
FIELDS
=>
[
'LOWER(login_name)'
],
TYPE
=>
'UNIQUE'
});
}
#####################################################################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment