Closed Bug 388048 Opened 17 years ago Closed 17 years ago

mozIStorageStatement::getParameterIndexes is useless

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: sdwilsh, Assigned: sdwilsh)

References

Details

Attachments

(2 files)

Attached file proof
It returns an array in case it was used more than once, but sqlite magically takes care of that for us.  It should be renamed to getParameterIndex and return an int.

Attached is a testcase demonstrating that sqlite does in fact handle this gracefully.
Blocks: 387945
Attached patch v1.0Splinter Review
On the right bug too :)
Attachment #272284 - Flags: review?(sspitzer)
Comment on attachment 272284 [details] [diff] [review]
v1.0

r=sspitzer
Attachment #272284 - Flags: review?(sspitzer) → review+
Checking in storage/public/mozIStorageStatement.idl;
new revision: 1.7; previous revision: 1.6
Checking in storage/src/mozStorageStatement.cpp;
new revision: 1.23; previous revision: 1.22
Checking in storage/test/unit/test_storage_statement.js;
new revision: 1.3; previous revision: 1.2
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9beta1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: