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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
ac03b19a
Commit
ac03b19a
authored
Jun 16, 2001
by
jake%acutex.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 71396 - $::db->do isn't needed anymore
Patch by Christian Reis <kiko@async.com.br> r= jake@acutex.net
parent
ccd9d172
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
36 deletions
+20
-36
editcomponents.cgi
editcomponents.cgi
+5
-9
editmilestones.cgi
editmilestones.cgi
+5
-9
editproducts.cgi
editproducts.cgi
+5
-9
editversions.cgi
editversions.cgi
+5
-9
No files found.
editcomponents.cgi
View file @
ac03b19a
...
...
@@ -608,15 +608,11 @@ if ($action eq 'delete') {
while
(
MoreSQLData
())
{
my
$bugid
=
FetchOneColumn
();
my
$query
=
$::db
->
query
(
"DELETE FROM attachments WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM dependencies WHERE blocked=$bugid"
)
or
die
"$::db_errstr"
;
PushGlobalSQLState
();
SendSQL
(
"DELETE FROM attachments WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM dependencies WHERE blocked=$bugid"
);
PopGlobalSQLState
();
}
print
"Attachments, bug activity and dependencies deleted.<BR>\n"
;
...
...
editmilestones.cgi
View file @
ac03b19a
...
...
@@ -425,15 +425,11 @@ if ($action eq 'delete') {
while
(
MoreSQLData
())
{
my
$bugid
=
FetchOneColumn
();
my
$query
=
$::db
->
query
(
"DELETE FROM attachments WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM dependencies WHERE blocked=$bugid"
)
or
die
"$::db_errstr"
;
PushGlobalSQLState
();
SendSQL
(
"DELETE FROM attachments WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM dependencies WHERE blocked=$bugid"
);
PopGlobalSQLState
();
}
print
"Attachments, bug activity and dependencies deleted.<BR>\n"
;
...
...
editproducts.cgi
View file @
ac03b19a
...
...
@@ -599,15 +599,11 @@ if ($action eq 'delete') {
while
(
MoreSQLData
())
{
my
$bugid
=
FetchOneColumn
();
my
$query
=
$::db
->
do
(
"DELETE FROM attachments WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
do
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
do
(
"DELETE FROM dependencies WHERE blocked=$bugid"
)
or
die
"$::db_errstr"
;
PushGlobalSQLState
();
SendSQL
(
"DELETE FROM attachments WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM dependencies WHERE blocked=$bugid"
);
PopGlobalSQLState
();
}
print
"Attachments, bug activity and dependencies deleted.<BR>\n"
;
...
...
editversions.cgi
View file @
ac03b19a
...
...
@@ -436,15 +436,11 @@ if ($action eq 'delete') {
while
(
MoreSQLData
())
{
my
$bugid
=
FetchOneColumn
();
my
$query
=
$::db
->
query
(
"DELETE FROM attachments WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
)
or
die
"$::db_errstr"
;
$query
=
$::db
->
query
(
"DELETE FROM dependencies WHERE blocked=$bugid"
)
or
die
"$::db_errstr"
;
PushGlobalSQLState
();
SendSQL
(
"DELETE FROM attachments WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM bugs_activity WHERE bug_id=$bugid"
);
SendSQL
(
"DELETE FROM dependencies WHERE blocked=$bugid"
);
PushGlobalSQLState
();
}
print
"Attachments, bug activity and dependencies deleted.<BR>\n"
;
...
...
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