Skip to content

INSERT INTO ? SELECT from a file source through alasql.promise rejects with a TypeError #3154

Backlog

Description

@mathiasrw
// j.json holds [{"a":1,"b":1},{"a":2,"b":2}]
const out = [];
await alasql.promise('INSERT INTO ? SELECT * FROM JSON("j.json")', [out]);

It rejects with TypeError: Cannot read properties of undefined (reading 'data'), and out stays empty.

It should resolve with 2 and fill out with the two rows, as INSERT INTO ? SELECT * FROM ? does.

Fixed by #2682.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions