Closed Bug 1431149 Opened 6 years ago Closed 6 years ago

Add an optional schema name argument to `OpenedConnection#{get, set}SchemaVersion`

Categories

(Toolkit :: Storage, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: lina, Assigned: lina)

References

Details

Attachments

(1 file)

This would let us set the schema version on attached databases, as we do in bug 1305563.
I thought about validating the schema name, but the official grammar for SQL identifiers is complicated, with quoting rules and whatnot. We could either use a simple RegExp that only allows alphanumeric schema names, or leave it and assume that callers know what they're doing. Since it's an optional argument with one consumer, I'm thinking we leave it.
Comment on attachment 8943322 [details]
Bug 1431149 - Add an optional schema name argument to `OpenedConnection#{get, set}SchemaVersion`.

https://reviewboard.mozilla.org/r/213640/#review219646

Thanks
Attachment #8943322 - Flags: review?(mak77) → review+
Pushed by kcambridge@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/410a941bdce8
Add an optional schema name argument to `OpenedConnection#{get, set}SchemaVersion`. r=mak
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9e512081bde6
Add an optional schema name argument to `OpenedConnection#{get, set}SchemaVersion`. r=mak
Flags: needinfo?(kit)
Backout by mistake and relanded.
https://hg.mozilla.org/mozilla-central/rev/9e512081bde6
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: