Closed Bug 487660 Opened 16 years ago Closed 16 years ago

Places depends on a buggy behavior of SQLite's SUBSTR

Categories

(Toolkit :: Places, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: sdwilsh, Assigned: sdwilsh)

References

Details

(Keywords: fixed1.9.0.11, verified1.9.1)

Attachments

(2 files)

Places depends on SUBSTR to treat the second parameter of 0 as the start of the string. However, 1 is supposed to be that. Before SQLite 3.6.11, SQLite let this pass, but it was a bug. We depended on it. This is a blocker because linux distributions generally use system SQLite, and they could upgrade to 3.6.11 or newer and break us. This needs to be fixed all the way back to 1.9.0 sadly :(
Flags: blocking1.9.1?
Flags: blocking1.9.0.10?
Blocks: 487664
Attached patch v1.0 (deleted) — Splinter Review
Attachment #371906 - Flags: review?(dietrich)
Whiteboard: [needs review dietrich]
Flags: blocking1.9.1? → blocking1.9.1+
Comment on attachment 371906 [details] [diff] [review] v1.0 nit: would be nice to fix these to consistently use a space between parameters to functions in SQL, or to not. r=me
Attachment #371906 - Flags: review?(dietrich) → review+
Whiteboard: [needs review dietrich]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Flags: in-litmus-
Resolution: --- → FIXED
Comment on attachment 371906 [details] [diff] [review] v1.0 Maybe this patch will get approval before blocking for 1.9.0
Attachment #371906 - Flags: approval1.9.0.10?
Comment on attachment 371906 [details] [diff] [review] v1.0 Actually, I'd need to cook up a special branch patch, so I'll wait to see if this is wanted on branch
Attachment #371906 - Flags: approval1.9.0.10?
Not blocking but we'll approve the 1.9.0 patch when you have one.
Flags: blocking1.9.0.10? → wanted1.9.0.x+
Attached patch branch v1.0 (deleted) — Splinter Review
Patch for 1.9.0.x
Attachment #373672 - Flags: approval1.9.0.10?
Comment on attachment 373672 [details] [diff] [review] branch v1.0 Approved for 1.9.0.10, a=dveditz for release-drivers
Attachment #373672 - Flags: approval1.9.0.10? → approval1.9.0.10+
Checking in toolkit/components/places/src/nsNavHistory.cpp; new revision: 1.309; previous revision: 1.308 Checking in toolkit/components/places/src/nsNavHistoryExpire.cpp; new revision: 1.47; previous revision: 1.46
Keywords: fixed1.9.0.10
Blocks: 489442
Blocks: 493560
Verified fixed based on check-ins on trunk and 1.9.1. We have a test so lets turn the in-testsuite flag to +.
Status: RESOLVED → VERIFIED
Flags: in-testsuite- → in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: