Closed Bug 483152 Opened 15 years ago Closed 15 years ago

Stop giving the ability to get the native sqlite3_stmt pointer

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: sdwilsh, Assigned: sdwilsh)

References

Details

Attachments

(1 file)

We don't need to do this, and with it, someone could mess up our internal state of mozStorageStatement.  This method should be culled from the idl (mozIStorageStatement).
Whiteboard: [good first bug]
Eh, this won't be trivial to do, but will still be nice to do.
Whiteboard: [good first bug]
Depends on: 483154
Depends on: 483157
Attached patch v1.0Splinter Review
Assignee: nobody → sdwilsh
Status: NEW → ASSIGNED
Attachment #367320 - Flags: review?(bugmail)
Whiteboard: [needs review asuth]
Attachment #367320 - Flags: review?(bugmail) → review+
Comment on attachment 367320 [details] [diff] [review]
v1.0

>diff --git a/storage/src/mozStorageStatementWrapper.h b/storage/src/mozStorageStatementWrapper.h
> protected:
>     sqlite3_stmt* NativeStatement() {
>-        return mStatement->GetNativeStatementPointer();
>+        return mStatement->nativeStatement();
>     }

Why does this NativeStatement escape your lower-casing wrath?  Planning to remove the function entirely later with a mod to mozStorageStatementWrapper:Initialize to use getColumnName so it is no longer used?
Whiteboard: [needs review asuth] → [has review]
(In reply to comment #3)
> Why does this NativeStatement escape your lower-casing wrath?  Planning to
> remove the function entirely later with a mod to
> mozStorageStatementWrapper:Initialize to use getColumnName so it is no longer
> used?
Yeah - I didn't want to create too much code churn all at once.
Whiteboard: [has review]
Target Milestone: --- → mozilla1.9.2a1
http://hg.mozilla.org/mozilla-central/rev/b48482c54995
Status: ASSIGNED → RESOLVED
Closed: 15 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: