AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
7.02k stars 653 forks source link

Error in IndexedDb and Safari/Firefox #447

Closed ghost closed 8 years ago

ghost commented 8 years ago

This simple code snippet causes errors in both Safari and Firefox:

> alasql('CREATE INDEXEDDB DATABASE IF NOT EXISTS geo');
< undefined
[Error] TypeError: r is not a function. (In 'r(s?0:1)', 'r' is undefined)
    onsuccess

More details: onsuccessalasql.min.js:22573TypeError: r is not a function. (In 'r(s?0:1)', 'r' is undefined)

I'm running Safari Version 9.0 (11601.1.56)

I also tested in Firefox with the same result:

alasql('CREATE INDEXEDDB DATABASE IF NOT EXISTS geo');
undefined
TypeError: r is not a function alasql.min.js:11:22045

Firefox version 40.0.3

mathiasrw commented 8 years ago

Hmmm. Interesting.

Thanks for letting us know.

Ill make sure it gets marked as a bug

anthonyboutinov commented 8 years ago

I suppose, this issue can be closed. No problems with this code in Safari 9.0.3. In Firefox 38.0.5 for Mac, no error is thrown either.