Closed Bug 374012 Opened 18 years ago Closed 18 years ago

Use transactions inside of Bugzilla::Object

Categories

(Bugzilla :: Database, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

The simplest place to use a transaction is inside of Bugzilla::Object->create and Bugzilla::Object->update. Because transactions are nestable in Bugzilla, it's easy to add them there, and then later add them into CGIs. Also, anybody who overrides create() or update() will probably want to do their own transaction stuff.
Attached patch v1Splinter Review
Hey Kevin, you like MySQL stuff and DB stuff and so forth, yeah? :-) Feel comfortable reviewing my transaction changes? I've tested this code on landfill. Basically, adding bz_start_transaction and bz_commit transaction anywhere in the code is entirely harmless, since they're nestable. But I still have to ask for review anyhow. :-)
Assignee: database → mkanat
Status: NEW → ASSIGNED
Attachment #258625 - Flags: review?(kevin.benton)
Attachment #258625 - Flags: review?(kevin.benton) → review?(LpSolit)
Comment on attachment 258625 [details] [diff] [review] v1 Seems to work fine. r=LpSolit
Attachment #258625 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in Bugzilla/Object.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Object.pm,v <-- Object.pm new revision: 1.14; previous revision: 1.13 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: