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
d172c9db
Commit
d172c9db
authored
Apr 15, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 289999: $bad_names hash in index-renaming code throws an "odd number of elements" warning
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=myk
parent
c48fd6c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Mysql.pm
Bugzilla/DB/Mysql.pm
+10
-10
No files found.
Bugzilla/DB/Mysql.pm
View file @
d172c9db
...
...
@@ -278,15 +278,15 @@ sub bz_setup_database {
# to a standard. We store those names here, so that they
# can be properly renamed.
my
$bad_names
=
{
bugs_activity
=>
(
'bugs_activity_bugid_idx'
,
'bugs_activity_bugwhen_idx'
)
,
longdescs
=>
(
'longdescs_bugid_idx'
,
'longdescs_bugwhen_idx'
)
,
flags
=>
(
'flags_bidattid_idx'
)
,
flaginclusions
=>
(
'flaginclusions_tpcid_idx'
)
,
flagexclusions
=>
(
'flagexclusions_tpc_id_idx'
)
,
profiles_activity
=>
(
'profiles_activity_when_idx'
)
,
group_control_map
=>
(
'group_control_map_gid_idx'
)
bugs_activity
=>
[
'bugs_activity_bugid_idx'
,
'bugs_activity_bugwhen_idx'
]
,
longdescs
=>
[
'longdescs_bugid_idx'
,
'longdescs_bugwhen_idx'
]
,
flags
=>
[
'flags_bidattid_idx'
]
,
flaginclusions
=>
[
'flaginclusions_tpcid_idx'
]
,
flagexclusions
=>
[
'flagexclusions_tpc_id_idx'
]
,
profiles_activity
=>
[
'profiles_activity_when_idx'
]
,
group_control_map
=>
[
'group_control_map_gid_idx'
]
# series_categories is dealt with below, not here.
};
...
...
@@ -346,7 +346,7 @@ sub bz_setup_database {
push
(
@columns
,
"${table}_unique_idx"
);
}
# And this is how we fix the other inconsistent Schema naming.
push
(
@columns
,
$bad_names
->
{
$table
})
push
(
@columns
,
@
{
$bad_names
->
{
$table
}
})
if
(
exists
$bad_names
->
{
$table
});
foreach
my
$column
(
@columns
)
{
# If we have an index named after this column, it's an
...
...
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