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.98k stars 649 forks source link

Inconsistent error message for invalid table names (SELECT vs JOIN) #1885

Closed clarkd closed 5 months ago

clarkd commented 5 months ago

Usually when you run a query with an invalid table name, you get a good error message: Table does not exist

But, if you try to do something like JOIN against an invalid table name, you get: Cannot read properties of undefined (reading 'columns')

It would be great if there was a consistent error message for situations like this.

See JSFiddle here

mathiasrw commented 5 months ago

Released as part of v4.3.0