Skip to content

alasql.promise with several statements in one string resolves with null for a statement that throws #3156

Backlog

Description

@mathiasrw
alasql.fn.boom = () => { throw new Error('boom'); };
await alasql.promise('SELECT 1 AS a; SELECT boom(1)');

It resolves with [[{a: 1}], null]. The callback form gets the same result and no error.

It should reject with boom, as the array form alasql.promise(['SELECT 1 AS a', 'SELECT boom(1)']) does.

Fixed by #2652.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions