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
c0771f45
Commit
c0771f45
authored
Apr 07, 2010
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 557495: PostgreSQL crashes when deleting a custom field of type BugID
r/a=mkanat
parent
6479bb0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Field.pm
Bugzilla/Field.pm
+4
-2
No files found.
Bugzilla/Field.pm
View file @
c0771f45
...
...
@@ -821,8 +821,10 @@ sub remove_from_db {
$bugs_query
=
"SELECT COUNT(*) FROM bug_$name"
;
}
else
{
$bugs_query
=
"SELECT COUNT(*) FROM bugs WHERE $name IS NOT NULL
AND $name != ''"
;
$bugs_query
=
"SELECT COUNT(*) FROM bugs WHERE $name IS NOT NULL"
;
if
(
$self
->
type
!=
FIELD_TYPE_BUG_ID
)
{
$bugs_query
.=
" AND $name != ''"
;
}
# Ignore the default single select value
if
(
$self
->
type
==
FIELD_TYPE_SINGLE_SELECT
)
{
$bugs_query
.=
" AND $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