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
6.96k stars 651 forks source link

fix: update typeof comparision to be string based #1914

Closed sytone closed 2 months ago

sytone commented 2 months ago

In the IndexedDB store comparision for the cursor in the from api call is against an object and from documentation the typeof returns a string so comparision should be string based.

This initial change is to validate against existing test, further review of tests is needed to ensure this does not regress later.

This is to resolve issue #1775

Thank you for the time you are putting into AlaSQL!