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)
Core
SQLite and Embedded Database Bindings
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 JS can be run in Developer's Extension's "JavaScript Environment". On 3.6 it works, errors on 4.0.
Updated•15 years ago
|
Component: General → Storage
Product: Core → Toolkit
QA Contact: general → storage
Updated•15 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•9 years ago
|
Priority: -- → P3
Comment 3•3 years ago
|
||
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 → --
Comment 4•2 years ago
|
||
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)
Comment 5•2 years ago
|
||
we don't want functions to be implemented in js, let's just keep everything in bug 1205205
Updated•1 year ago
|
Product: Toolkit → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•