Closed Bug 333835 Opened 19 years ago Closed 19 years ago

Fix temp file problem in SQLITE on OS/2

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

x86
OS/2
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: vlad)

Details

(Keywords: fixed1.8.1)

Attachments

(3 files)

The SQLITE backend produces many sqlite* files in %TEMP% when browsing with a Places enabled Firefox build. That is because of a bug in the SQLITE platform code for OS/2.
This patch to os_os2.c fixes the temp file problem, and also cleans up the code with respect to whitespace and return code readability. I suspect the same patch will end up in upstream SQLITE soon, not sure if we still need the patch here.
Attachment #218265 - Flags: first-review?(vladimir)
Attachment #218265 - Attachment description: Fix tempfile problem (+ cleanup) → Fix tempfile problem (+ cleanup), patch by Daniel Kruse
Comment on attachment 218265 [details] [diff] [review] Fix tempfile problem (+ cleanup), patch by Daniel Kruse r=mkaply - this is OS/2 only, so I'll just check it in.
Attachment #218265 - Flags: first-review?(vladimir) → first-review+
Please check this patch into db/sqlite3 along with the other patches and add documentation to the end of README.MOZILLA in that directory. We're going to upgrading sqlite, and I will forget this patch if you don't do this. If this is a generic sqlite problem, you should send your patch to them so we don't have to manage these patches.
brettw, I learned in the meantime that the OS/2 files did not yet make it into the SQLite repository. So I would guess if you sync with them you wouldn't overwrite the files? If still required you could put this at the end of README.MOZILLA: While updating do not remove the files os_os2.c and os_os2.h. -- Peter Weilbacher <mozilla@weilbacher.org> 05/2006
Can you make a patch and do that? I'll forget and I'm not going to be doing this for a few days.
Whoever checks in these changes: can you please also add this comment to README.MOZILLA? The OS/2 files should make it into SQLite hopefully soon, but until then this comment should be there I guess.
Attached patch changes to os.hSplinter Review
Bloody hell, it seems this came too late. The update already overwrote the previous OS/2 changes in os.h. :-( To get it to build again on OS/2 we need this patch anew.
(In reply to comment #7) > Bloody hell, it seems this came too late. The update already overwrote the > previous OS/2 changes in os.h. :-( To get it to build again on OS/2 we need > this patch anew. Please check in the patch as I requested in comment 3 or it will keep getting overwritten every time.
brettw, I would love to but nobody wants to give me sr+ in bug 319955. In the meantime, mkaply, can you do something about it?
Everything above is checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Thanks, Mike!
Keywords: fixed1.8.1
Flags: in-testsuite-
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: