Closed
Bug 374012
Opened 18 years ago
Closed 18 years ago
Use transactions inside of Bugzilla::Object
Categories
(Bugzilla :: Database, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file)
1.17 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•18 years ago
|
||
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 | ||
Updated•18 years ago
|
Attachment #258625 -
Flags: review?(kevin.benton) → review?(LpSolit)
![]() |
||
Comment 2•18 years ago
|
||
Comment on attachment 258625 [details] [diff] [review]
v1
Seems to work fine. r=LpSolit
Attachment #258625 -
Flags: review?(LpSolit) → review+
![]() |
||
Updated•18 years ago
|
Flags: approval+
Assignee | ||
Comment 3•18 years ago
|
||
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.
Description
•