Closed
Bug 196575
Opened 22 years ago
Closed 22 years ago
Add comments to IDL interfaces
Categories
(Core Graveyard :: SQL, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.5beta
People
(Reporter: janv, Assigned: enndeakin)
Details
Attachments
(1 file, 1 obsolete file)
|
29.84 KB,
patch
|
janv
:
review+
|
Details | Diff | Splinter Review |
| Reporter | ||
Updated•22 years ago
|
Priority: -- → P3
Target Milestone: --- → mozilla1.5alpha
Updated•22 years ago
|
QA Contact: Malachi
| Reporter | ||
Updated•22 years ago
|
Target Milestone: mozilla1.5alpha → mozilla1.5beta
| Assignee | ||
Comment 1•22 years ago
|
||
I started working on adding comments to the IDL files. I can submit a patch if
you like.
| Reporter | ||
Comment 2•22 years ago
|
||
sure, that would be awesome!
| Assignee | ||
Comment 3•22 years ago
|
||
Updated•22 years ago
|
Attachment #131806 -
Flags: review?(varga)
| Reporter | ||
Comment 4•22 years ago
|
||
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
| Reporter | ||
Comment 5•22 years ago
|
||
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
| Reporter | ||
Updated•22 years ago
|
Attachment #131806 -
Flags: review?(varga)
| Assignee | ||
Comment 6•22 years ago
|
||
Changes to mozISqlResultEnumerator.idl
Attachment #131806 -
Attachment is obsolete: true
| Assignee | ||
Updated•22 years ago
|
Attachment #132072 -
Flags: review?(varga)
| Reporter | ||
Comment 7•22 years ago
|
||
Comment on attachment 132072 [details] [diff] [review]
Updated patch
r/moa=varga
Attachment #132072 -
Flags: review?(varga) → review+
| Reporter | ||
Comment 9•22 years ago
|
||
Yeah, I think this can go in w/o an sr
Neil, you have a cvs login, don't you?
| Reporter | ||
Comment 10•22 years ago
|
||
checked in, thanks Neil
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Comment 12•22 years ago
|
||
*bugspam*
| Assignee | ||
Updated•18 years ago
|
Flags: in-testsuite-
Updated•9 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•