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.

Home Page:http://alasql.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'total' appears to have become a keyword but is not documented as such

report-zone opened this issue · comments

I have a table which contains total as a column name, this seems to cause all kinds of problems.

I can retrieve it by escaping

select `total' from bills

however I cannot use SUM anymore

select SUM(total) from bills

or

select SUM(total) from bills

both throw and error

This was caused by a poor query. Not an actual problem.