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
ae887eab
Commit
ae887eab
authored
Dec 13, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 310108: checksetup.pl fails if attachstatuses or attachstatusdefs tables are empty
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
parent
34811ca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
checksetup.pl
checksetup.pl
+3
-4
No files found.
checksetup.pl
View file @
ae887eab
...
...
@@ -3210,10 +3210,9 @@ if ($dbh->bz_table_info("attachstatuses")
print
"Converting attachment statuses to flags...\n"
;
# Get IDs for the old attachment status and new flag fields.
$sth
=
$dbh
->
prepare
(
"SELECT fieldid FROM fielddefs "
.
"WHERE name='attachstatusdefs.name'"
);
$sth
->
execute
();
my
$old_field_id
=
$sth
->
fetchrow_arrayref
()
->
[
0
]
||
0
;
my
(
$old_field_id
)
=
$dbh
->
selectrow_array
(
"SELECT fieldid FROM fielddefs WHERE name='attachstatusdefs.name'"
)
||
0
;
$sth
=
$dbh
->
prepare
(
"SELECT fieldid FROM fielddefs "
.
"WHERE name='flagtypes.name'"
);
...
...
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