Closed Bug 278017 (bz-deprecateddb) Opened 20 years ago Closed 18 years ago

Eliminate use of deprecated Bugzilla::DB routines (SendSQL, etc.)

Categories

(Bugzilla :: Bugzilla-General, enhancement, P3)

2.19.1
enhancement

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: LpSolit)

References

(Blocks 1 open bug)

Details

(Keywords: meta)

Attachments

(1 file, 1 obsolete file)

I thought this bug was already filed... but we need to get rid of all the
SendSQL calls and so forth, and eventually eliminate those subroutines from
Bugzilla::DB.

File blockers.
Depends on: 278018
Depends on: 278032
Blocks: bz-majorarch
Depends on: 279544
No longer depends on: 278032
Depends on: 282128
Depends on: 282132
Priority: -- → P3
Alias: bz-deprecateddb
Target Milestone: --- → Bugzilla 2.22
Blocks: 131839
Depends on: 300549
Depends on: 300551
Depends on: 300552
Depends on: 303688
Depends on: 303690
Depends on: 303691
Depends on: 303692
Depends on: 303693
Depends on: 303694
Depends on: 303695
Depends on: 303696
Depends on: 303697
Depends on: 303699
Depends on: 303700
Depends on: 303702
Depends on: 303703
Depends on: 303704
Depends on: 303705
Depends on: 303706
Depends on: 303708
Depends on: 303709
All blockers filed. After they are done, deprecated code in Bugzilla.pm and
Bugzilla/DB.pm can be removed by a patch to this bug.

Globals.pl will be dealt with in bug 87411. Files contrib/gnats2bz.pl and
contrib/gnatsparse/gnatsparse.py don't need changes because they use their own
implementation of SqlQuote and not the one in Bugzilla::DB.

Note that UPGRADING-pre-2.8 contains some example update code that uses these
deprecated routines. Not that these instructions have been updated to not use
functions like ConnectToDatabase either and are most likely broken in numerous
other ways.
Depends on: bz-globals
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
Depends on: 317149
Blocks: bz-roadmap
Attached patch patch, v1 (obsolete) — Splinter Review
Bug 300552 about Search.pm is under review. And all routines have been moved out of globals.pl. We can now remove everything related to deprecated DB routines.

Note that contrib/gnats2bz.pl uses its own SqlQuote() routine; just in case you wondered why I left it alone.
Assignee: mkanat → LpSolit
Status: NEW → ASSIGNED
Attachment #226249 - Flags: review?(mkanat)
Comment on attachment 226249 [details] [diff] [review]
patch, v1

YES!!

Wow, I can't believe all our work is finally coming to a final product.
Attachment #226249 - Flags: review?(mkanat) → review+
Flags: approval?
Flags: approval? → approval+
Attached patch patch, v1.1Splinter Review
The :deprecated tag no longer exists.
Attachment #226249 - Attachment is obsolete: true
Attachment #226288 - Flags: review?(mkanat)
Comment on attachment 226288 [details] [diff] [review]
patch, v1.1

Sure, that also looks fine to me.
Attachment #226288 - Flags: review?(mkanat) → review+
Keywords: relnote
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v  <--  Bugzilla.pm
new revision: 1.37; previous revision: 1.36
done
Checking in globals.pl;
/cvsroot/mozilla/webtools/bugzilla/globals.pl,v  <--  globals.pl
new revision: 1.373; previous revision: 1.372
done
Checking in Bugzilla/DB.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v  <--  DB.pm
new revision: 1.77; previous revision: 1.76
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Added to the relnotes currently attached to bug 349423.
Keywords: relnote
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: