Closed Bug 196575 Opened 22 years ago Closed 22 years ago

Add comments to IDL interfaces

Categories

(Core Graveyard :: SQL, defect, P3)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla1.5beta

People

(Reporter: janv, Assigned: enndeakin)

Details

Attachments

(1 file, 1 obsolete file)

Priority: -- → P3
Target Milestone: --- → mozilla1.5alpha
QA Contact: Malachi
Target Milestone: mozilla1.5alpha → mozilla1.5beta
I started working on adding comments to the IDL files. I can submit a patch if you like.
sure, that would be awesome!
Attached patch Add comments to IDL files (obsolete) — Splinter Review
Attachment #131806 - Flags: review?(varga)
Comment on attachment 131806 [details] [diff] [review] Add comments to IDL files everything looks pretty good, I really appreciate this work! although there's a little misunderstanding in the mozISqlResultEnumerator interface >+ /** >+ * Sets the value at the specified column in the current row to its >+ * original value. Changes are not committed until the copy method is >+ * called. >+ * >+ * @param aColumnIndex the column to modify >+ */ > void setDefault(in long aColumnIndex); actually the default means the default column value for a table create table foo ( bar int default 1 ) so it will be processed like this: insert into foo values(DEFAULT) or update foo set bar=DEFAULT > >+ /** >+ * Commits changes to the current row for a given column. >+ * >+ * @param aColumnIndex the column to modify >+ */ > void copy(in long aColumnIndex); This is not a commit, it just fills buffer for the current row with original values. Usuful for updates. > >+ /** >+ * Sets the value at the specified column in the current row to a variant. >+ * Changes are not committed until the copy method is called. I'd say that changes are not commited until insertRow() or updateRow() is called. The same for other similar methods. >+ * >+ * @param aColumnIndex the column to modify >+ * @param aValue the value to assign >+ */ > void setVariant(in long aColumnIndex, in nsIVariant aValue); >+ /** >+ * Sets the value of the cells in all columns in the current row to null. >+ * Changes are not committed until the copyValues method is called. >+ */ > void setNullValues(); needs to be fixed too > >+ /** >+ * Sets the value of the cells in all columns in the current row to their >+ * original value. Changes are not committed until the copyValues method is >+ * called. >+ */ > void setDefaultValues(); the same as above > >+ /** >+ * Commits changes to the current row for all columns. >+ */ > void copyValues(); > needs to be fixed like copy() > >+ /** >+ * Inserts a row using the data assigned using the various setX methods. >+ * >+ * @return 1 if the row was inserted and 0 if the row was not. >+ */ > long insertRow(); actually, the return value means something different -1 if there was an error, so the row was not inserted 0 the row was inserted but it doesn't fit the where condition, so it shouldn't be displayed 1 the row was inserted and fits the condition the same for updateRow() deleteRow() returns -1 or 1
I plan to add/remove/rename some methods/attributes in future, but let's take this comments first, they are very important
Assignee: varga → enndeakin
Summary: Cleanup and add comments to IDL interfaces → Add comments to IDL interfaces
Attachment #131806 - Flags: review?(varga)
Attached patch Updated patchSplinter Review
Changes to mozISqlResultEnumerator.idl
Attachment #131806 - Attachment is obsolete: true
Attachment #132072 - Flags: review?(varga)
Comment on attachment 132072 [details] [diff] [review] Updated patch r/moa=varga
Attachment #132072 - Flags: review?(varga) → review+
Comment-only changes have a blanket SR, don't they?
Status: NEW → ASSIGNED
Yeah, I think this can go in w/o an sr Neil, you have a cvs login, don't you?
checked in, thanks Neil
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Verified fixed.
Status: RESOLVED → VERIFIED
Flags: in-testsuite-
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: