You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
INSERT ... VALUES (DEFAULT) throws a TypeError #2791
The keyword DEFAULT as a value in INSERT ... VALUES throws a TypeError. UPDATE t SET a = DEFAULT writes undefined instead (#2877).
Seen in the NIST SQL Test Suite run: 9 checks in 6 files (dml135.sql: INSERT INTO "Proj" (PNUM, PNAME, BUDGET) VALUES ('P7', 'FROB', DEFAULT), dml106.sql, ...). Reproduced on develop (38bf3c3):
alasql('CREATE TABLE t (a INT DEFAULT 7, b INT)');alasql('INSERT INTO t VALUES (DEFAULT, 1)');// TypeError: undefined is not an object (evaluating 'undefined['undefined']')alasql('INSERT INTO t (a, b) VALUES (DEFAULT, 2)');// TypeError: undefined is not an object (evaluating 'undefined['undefined']')
Activity
Read DEFAULT as the column default in SET and VALUES to close AlaSQL#…
Make DEFAULT context-aware keywords to close in SET and VALUES to to c…