Closed
Bug 649151
Opened 13 years ago
Closed 6 months ago
User created functions in mozIStorageConnection will error if used asynchronously
Categories
(Toolkit :: Storage, defect, P3)
Toolkit
Storage
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•13 years ago
|
Component: General → Storage
Product: Core → Toolkit
QA Contact: general → storage
Updated•13 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•8 years ago
|
Priority: -- → P3
Comment 3•2 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•6 months 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•6 months ago
|
||
we don't want functions to be implemented in js, let's just keep everything in bug 1205205
You need to log in
before you can comment on or make changes to this bug.
Description
•