Closed Bug 649151 Opened 15 years ago Closed 2 years ago

User created functions in mozIStorageConnection will error if used asynchronously

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1205205

People

(Reporter: agilmore, Unassigned)

References

Details

Attachments

(1 file)

1.18 KB, application/javascript
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16 Build Identifier: 4.0 If you create a function (https://developer.mozilla.org/en/mozIStorageConnection#createAsyncStatement()) it will work if you execute it synchronously, but will error with "SQL logic error or missing database" when you attempt to execute asynchronously. This worked as expected without issue in FF 3.6, the error is new in FF4. Reproducible: Always Steps to Reproduce: 1.Connect to a database 2.Create a function 3.Execute statement asynchronously that calls the created function Actual Results: Errors, "SQL logic error or missing database" Expected Results: It should execute the statement without error. This error is new in FF4, it worked fine in FF3.6. It's additionally problematic as all documentation encourages asynchronously execution of SQL, synchronous execute is "strongly discouraged".
Attached file Demonstrates bug
Attached JS can be run in Developer's Extension's "JavaScript Environment". On 3.6 it works, errors on 4.0.
Component: General → Storage
Product: Core → Toolkit
QA Contact: general → storage
This broke because of bug 608142.
Blocks: 608142
Status: UNCONFIRMED → NEW
Ever confirmed: true
Blocks: 1205205
Priority: -- → P3

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: major → --

The severity field is not set for this bug.
:mak, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mak)

we don't want functions to be implemented in js, let's just keep everything in bug 1205205

No longer blocks: 1205205
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1205205
Flags: needinfo?(mak)
Resolution: --- → DUPLICATE
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: